Add support for Angular 17 and 18 with the new build tool #12
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: ngx-aws-deploy | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x] | |
env: | |
NX_BRANCH: ${{ github.event.number }} | |
NX_RUN_GROUP: ${{ github.run_id }} | |
steps: | |
- name: Clone repository | |
# `fetch-depth` defaults to 1. | |
uses: actions/checkout@v2 | |
- name: Cache builder node modules | |
id: cache | |
uses: actions/cache@v1 | |
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@v1 | |
with: | |
node-version: ${{ matrix.version }} | |
- name: Install Builder Dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: npm ci | |
- name: Symlink dist 🔗 | |
run: npm run symlinks | |
- name: Tests coverage | |
run: npm run nx run-many -- --target=test --all --codeCoverage | |
- name: Build | |
run: npm run nx run-many -- --target=build --all --parallel=true --prod |