mirror of
https://github.com/mantinedev/next-app-template.git
synced 2025-11-10 04:22:01 +10:00
Add GitHub workflow
This commit is contained in:
27
.github/workflows/npm_test.yml
vendored
Normal file
27
.github/workflows/npm_test.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user