Skip to content

2.12.0

2.12.0 #244

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
angular-version: [13.2.6, 14.0.2, 15.0.3, 16.2.1, 17.0.0, 18.0.0-rc.3]
exclude:
- node-version: 18.x
- node-version: 20.x
- angular-version: 17.0.0
- angular-version: 18.0.0-rc.3
include:
- angular-version: 13.2.6
devkit-version: 0.1302.6
- angular-version: 14.0.2
devkit-version: 0.1400.2
- angular-version: 15.0.3
devkit-version: 0.1500.3
- angular-version: 16.2.1
devkit-version: 0.1602.1
- angular-version: 16.2.1
devkit-version: 0.1602.1
node-version: 18.x
- angular-version: 17.0.0
devkit-version: 0.1700.0
node-version: 18.x
- angular-version: 17.0.0
devkit-version: 0.1700.0
node-version: 20.x
- angular-version: 18.0.0-rc.3
devkit-version: 0.1800.0-rc.3
node-version: 20.x
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: rm package-lock.json # otherwise we cannot overwrite the peerDependencies version of @angular-devkit/build-angular below
- run: npm i --save-exact "@angular-devkit/architect@${{ matrix.devkit-version }}" "@angular-devkit/core@${{ matrix.angular-version }}" "@angular-devkit/schematics@${{ matrix.angular-version }}" "@schematics/angular@${{ matrix.angular-version }}" "@angular-devkit/build-angular@${{ matrix.angular-version }}" "@angular/core@${{ matrix.angular-version }}" "@angular/compiler-cli@${{ matrix.angular-version }}"
- run: npm i
- run: npm ls || true
- run: npm run build
- run: npm run test-coverage
- name: Coveralls
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-${{ matrix.node-version }}
parallel: true
finish:
needs: build
runs-on: ubuntu-22.04
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true