Merge pull request #322 from TAMULib/Scholars-sprint-staging #1187
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: Node CI with NPM | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
runs-on: [windows-latest, macos-latest, ubuntu-latest] | |
node-version: [16, 18] | |
runs-on: ${{ matrix.runs-on }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install --network-timeout 3600000 | |
- name: Test CI | |
uses: GabrielBB/xvfb-action@v1 | |
with: | |
run: yarn test:ci | |
- name: Coveralls coverage report | |
if: ${{ matrix.runs-on == 'windows-latest' && matrix.node-version == '18' }} | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: ./coverage/scholars-angular/lcov.info |