build: use nx #1
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: Node.js CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: | |
- 18.x | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
- uses: nrwl/nx-set-shas@v3 | |
- run: npm ci | |
- run: npx nx format:check | |
- run: npm run lint | |
- run: npx nx affected -t test --parallel=3 | |
# - run: npx nx affected -t build --parallel=3 |