Add GitHub workflow

This commit is contained in:
Vitaly Rtishchev
2024-04-26 13:20:01 +04:00
parent 512f7fe8b7
commit 8e9aa5918d
2 changed files with 28 additions and 0 deletions

27
.github/workflows/npm_test.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: npm test
on:
pull_request:
branches:
- '**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
jobs:
test_pull_request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'
- name: Install dependencies
run: yarn
- name: Run build
run: npm run build
- name: Run tests
run: npm test

1
.nvmrc Normal file
View File

@ -0,0 +1 @@
v20.9.0