build: Add nyx config #56
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: Frontend Quality Assurance Checks | |
on: | |
push: | |
paths-ignore: | |
- 'src-tauri/**' | |
- '.github/workflows/backend_qa.yml' | |
- 'docker-compose.yml' | |
- 'README.md' | |
- 'LICENSE.md' | |
- 'CODE_OF_CONDUCT.md' | |
- '.gitignore' | |
branches: | |
- master | |
pull_request: | |
paths-ignore: | |
- 'src-tauri/**' | |
- '.github/workflows/backend_qa.yml' | |
- 'docker-compose.yml' | |
- 'README.md' | |
- 'LICENSE.md' | |
- 'CONTRIBUTING.md' | |
- 'CODE_OF_CONDUCT.md' | |
- '.gitignore' | |
branches: | |
- master | |
permissions: | |
contents: read | |
actions: read | |
checks: write | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm ci | |
- name: Lint with ESLint | |
run: npm run lint:report | |
continue-on-error: true | |
- name: Annotate Code Linting Results | |
if: success() || failure() | |
uses: ataylorme/eslint-annotate-action@v2 | |
with: | |
report-json: 'eslint_report.json' | |
continue-on-error: true | |
- name: Test with Jest | |
run: npm run test:ci | |
- name: Create Test Report | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() | |
with: | |
name: JEST Tests | |
path: junit.xml | |
reporter: jest-junit | |
continue-on-error: true | |
# TODO: Add e2e tests | |
# - name: End-to-end tests with Cypress | |
# uses: cypress-io/github-action@v2 | |
# with: | |
# start: npm run start | |
# wait-on: 'http://localhost:3000' |