Skip to content

Install dependencies on GH actions using npm ci command #25

Install dependencies on GH actions using npm ci command

Install dependencies on GH actions using npm ci command #25

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install
run: npm ci
- name: Lint, format and type check
run: npm run verify
- name: Build
run: npm run build
- name: Test
run: npm run coverage
- name: Send coverage report to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}