Simplify the program and use dynamic loading of the snapshots #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .github/workflows/pr.yml | |
name: Pull Request Tests | |
on: | |
pull_request: | |
branches: | |
- main | |
- develop | |
- '*' | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Setup Node.js Environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '14' | |
cache: 'yarn' | |
- name: Install Dependencies | |
run: yarn install --frozen-lockfile | |
- name: Run React Component Tests | |
run: yarn test -- --ci --watchAll=false | |
- name: Run Node.js Script Tests | |
run: yarn test:scripts | |
# Optionally, you can upload test coverage reports or other artifacts | |
- name: Upload Coverage Report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage-report | |
path: coverage/ |