Skip to content

refactor

refactor #28

Workflow file for this run

name: Test build
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
workflow_dispatch:
jobs:
build:
name: Build and test on Node ${{ matrix.node }} and ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
matrix:
node: ['16.x', '18.x']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install dependencies and build (with cache)
uses: bahmutov/npm-install@v1
- name: Test
run: npm test
- name: Build
run: npm run build