mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-26 22:44:35 +10:00
add GitHub Action to run unit tests on every PR/push
This commit is contained in:
27
.github/workflows/run-tests.yml
vendored
Normal file
27
.github/workflows/run-tests.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
name: Run Unit Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ $default-branch ]
|
||||
pull_request:
|
||||
branches: [ $default-branch ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [12.x, 14.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- run: npm ci
|
||||
- run: npm test
|
||||
Reference in New Issue
Block a user