diff --git a/.github/workflows/build_test_react.yml b/.github/workflows/build_test_react.yml new file mode 100644 index 0000000..2098139 --- /dev/null +++ b/.github/workflows/build_test_react.yml @@ -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