v17 update #40
Workflow file for this run
This file contains 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: Nx Affected CI Tests | |
on: | |
pull_request: | |
branches: [main] | |
paths-ignore: | |
- '**.md' | |
env: | |
NX_BRANCH: ${{ github.event.number }} | |
NX_RUN_GROUP: ${{ github.run_id }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- run: git fetch origin main | |
- name: npm install | |
run: npm install | |
- name: Run Affected Unit Tests | |
shell: bash | |
run: npm run affected:test -- --base=remotes/origin/main | |
- name: Run Affected E2E Tests | |
shell: bash | |
run: npm run affected:e2e -- --base=remotes/origin/main |