ci: DO-2153 Create Artifacts for PR #2827
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lava SDK Tests | |
on: [pull_request] | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.yarn | |
key: yarn-${{ hashFiles('yarn.lock') }} | |
restore-keys: yarn- | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: "1.20.5" | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "21.2.0" | |
- name: Init the SDK | |
run: GOPATH=~/go ./scripts/init_sdk.sh -s | |
working-directory: ./ecosystem/lava-sdk | |
- name: ESLint | |
run: ./node_modules/.bin/eslint '**/*.ts' | |
working-directory: ./ecosystem/lava-sdk | |
- name: Test | |
run: ./node_modules/.bin/jest ./src | |
working-directory: ./ecosystem/lava-sdk |