-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (67 loc) · 1.7 KB
/
frontend_qa.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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'