Skip to content

Commit

Permalink
chore: fix on-pull-request action
Browse files Browse the repository at this point in the history
  • Loading branch information
blakecduncan committed Oct 26, 2023
1 parent 99be9be commit 9004fd7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 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 install --frozen-lockfile

- name: Build SDK
run: yarn build
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
node-version: "18.13"
cache: "yarn"

- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Install commitlint
run: npm install -g @commitlint/{config-conventional,cli}

- name: Use commitlint to check PR title
run: echo "${{ github.event.pull_request.title }}" | yarn commitlint
Expand All @@ -38,19 +38,22 @@ jobs:
- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Lint
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
run: yarn --cwd e2e-tests test:e2e

# - name: Unit Test
# run: yarn test

0 comments on commit 9004fd7

Please sign in to comment.