Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only run verify on needed pkgs #20

Merged
merged 5 commits into from
Sep 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 32 additions & 4 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,19 @@ jobs:

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

- uses: actions/checkout@v3
if: ${{ github.event_name != 'pull_request' }}

- 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 +33,19 @@ jobs:

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

- uses: actions/checkout@v3
if: ${{ github.event_name != 'pull_request' }}

- 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 +55,33 @@ jobs:

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

- uses: actions/checkout@v3
if: ${{ github.event_name != 'pull_request' }}

- 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
if: ${{ github.event_name == 'pull_request' }}
with:
fetch-depth: ${{ github.event.pull_request.commits }} + 1
ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/checkout@v3
if: ${{ github.event_name != 'pull_request' }}

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