Upgrade everything #254
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: ngx-aws-deploy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20.x, 22.x] | |
| env: | |
| NX_BRANCH: ${{ github.event.number }} | |
| NX_RUN_GROUP: ${{ github.run_id }} | |
| NX_BASE: 'remotes/origin/main' | |
| steps: | |
| - name: Clone repository | |
| # `fetch-depth` defaults to 1. | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Cache builder node modules | |
| id: cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: node_modules | |
| key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.OS }}-build-${{ env.cache-name }}- | |
| ${{ runner.OS }}-build-${{ matrix.version }} | |
| - name: Setup Node | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: ${{ matrix.version }} | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| - uses: nrwl/nx-set-shas@v3 | |
| - run: npm ci | |
| - name: Symlink dist 🔗 | |
| run: npm run symlinks | |
| - run: npx nx format:check | |
| - run: npx nx affected -t lint --parallel=3 | |
| - run: npx nx affected -t test --parallel=3 --configuration=ci |