Skip to content

Create monthly_metric.yml #339

Create monthly_metric.yml

Create monthly_metric.yml #339

Workflow file for this run

name: NPM Build and Test
on: [pull_request]
defaults:
run:
working-directory: .
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Prepare
run: |
npm ci --force
- name: Build
run: |
npm run build
- name: Unit Test
run: |
npm run test:headless