Skip to content

Merge pull request #83 from daniel-sc/81-newline-at-end-not-trimmed #169

Merge pull request #83 from daniel-sc/81-newline-at-end-not-trimmed

Merge pull request #83 from daniel-sc/81-newline-at-end-not-trimmed #169

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]
angular-version: [13.1.4, 14.0.2, 15.0.3, 16.2.1, 17.0.0-next.6]
exclude:
- node-version: 18.x
- angular-version: 17.0.0-next.6
include:
- angular-version: 13.1.4
devkit-version: 0.1301.4
- 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-next.6
devkit-version: 0.1700.0-next.6
node-version: 18.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 }}"
- 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