Skip to content

Commit

Permalink
test: fixed PR workflow action to run e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SahilVasava committed Oct 26, 2023
1 parent 1545ce4 commit abece4f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
cache: "yarn"

- name: Install SDK dependencies
run: yarn
run: yarn --frozen-lockfile

- name: Build SDK
run: yarn build
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: "16.20"
node-version: "18.13"
cache: "yarn"

- name: Install dependencies
Expand All @@ -25,32 +25,32 @@ jobs:
name: Lint and Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

- name: Setup Node.js
- name: Setup Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: "16.20"
node-version: "18.13"
cache: "yarn"

- name: Install dependencies
- name: Install SDK dependencies
run: yarn install --frozen-lockfile

- name: Lint
- name: Lint SDK
run: yarn lint:check

- name: Build
- name: Build SDK
run: yarn build

- name: Link SDK
run: yarn --cwd packages/accounts link

- name: Install E2E tests
run: yarn --cwd e2e-tests link @zerodev/sdk && yarn --cwd e2e-tests

- name: E2E tests
env:
API_URL: ${{ secrets.API_URL }}
API_KEY: ${{ secrets.API_KEY }}
TEAM_ID: ${{ secrets.TEAM_ID }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
run: yarn test:e2e

# - name: Unit Test
# run: yarn test
run: yarn --cwd e2e-tests test:e2e

0 comments on commit abece4f

Please sign in to comment.