Updated instructions, simplified pre-commit CI action #50
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
name: Codebase tests (Jest) | |
on: | |
pull_request: | |
types: [opened, edited, reopened, synchronize] | |
push: | |
branches: [ master ] | |
jobs: | |
codebase-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Repository checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm install --no-progress --no-update-notifier | |
- name: Run tests | |
run: npm test | |
- name: Publish Test Report | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: junit-report | |
path: reports/report.xml |