Tong/new changes #18
This file contains hidden or 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: Verify PR | |
on: | |
pull_request: | |
branches: [main] # or your default branch | |
jobs: | |
verify: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22.3.0' | |
- name: Install dependencies | |
run: npm install | |
- name: Lint affected | |
run: npx nx affected --target=lint --base=origin/main | |
- name: Test affected | |
run: npx nx affected --target=test --base=origin/main | |
- name: Build affected | |
run: npx nx affected --target=build --base=origin/main |