Skip to content

Commit

Permalink
Only run verify on needed pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
svemat01 committed Sep 26, 2023
1 parent 2228994 commit 9b6e7cf
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
fetch-depth: ${{ github.event.pull_request.commits }} + 1
ref: ${{ github.event.pull_request.head.sha }}

- name: Install dependencies
uses: ./.github/actions/setup

- name: Lint code
run: pnpm lint
run: pnpm --filter "...[HEAD~${{ github.event.pull_request.commits }}]" lint

build:
name: Build
Expand All @@ -26,12 +29,15 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
fetch-depth: ${{ github.event.pull_request.commits }} + 1
ref: ${{ github.event.pull_request.head.sha }}

- name: Install dependencies
uses: ./.github/actions/setup

- name: Build
run: pnpm build
run: pnpm --filter "...[HEAD~${{ github.event.pull_request.commits }}]" build

types:
name: Types
Expand All @@ -41,19 +47,25 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
fetch-depth: ${{ github.event.pull_request.commits }} + 1
ref: ${{ github.event.pull_request.head.sha }}

- name: Install dependencies
uses: ./.github/actions/setup

- name: Check types
run: pnpm typecheck
run: pnpm --filter "...[HEAD~${{ github.event.pull_request.commits }}]" typecheck

test:
name: Test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: ${{ github.event.pull_request.commits }} + 1
ref: ${{ github.event.pull_request.head.sha }}

- name: Install dependencies
uses: ./.github/actions/setup
Expand All @@ -63,4 +75,4 @@ jobs:
with:
timeout_minutes: 20
max_attempts: 3
command: pnpm test:coverage
command: pnpm --filter "...[HEAD~${{ github.event.pull_request.commits }}]" test -- --coverage

0 comments on commit 9b6e7cf

Please sign in to comment.