ci: build and test react app

main
Cameron Clough 2022-01-05 21:04:01 +00:00
parent bb3d2154ac
commit f8f9987381
No known key found for this signature in database
GPG Key ID: BFB3B74B026ED43F
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
name: Build and test React app
on:
push:
branches: [ main ]
pull_request:
jobs:
build_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
check-latest: true
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm test