Skip to content

Node Test for PRs

Node Test for PRs #13

Workflow file for this run

name: Node Test for PRs
on:
pull_request:
branches:
- development
- staging
- "release/*"
- main
jobs:
test:
name: Install dependencies and test
runs-on: ubuntu-latest
strategy:
matrix:
node: ["14"]
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: |
~/.npm
**/node_modules
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- run: npm ci
- run: npm run test
- name: Build
run: npm run build
- uses: romeovs/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
lcov-file: ./build/reports/jest/lcov.info