forked from SpaceCowboy326/open_data_gvl
-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (36 loc) · 1.03 KB
/
ci.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
name: ci
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install npm
uses: actions/setup-node@v3
with:
node-version: "20.8.0"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Check formatting
run: npm run lint-check
- name: Check for type errors
run: npm run type-check
- name: Check for build errors
run: npm run build
- name: Run unit tests
run: npm run test:unit
- name: Run end-to-end tests
id: e2eTests
run: npm run test:e2e
# Uploads the failure screenshots produced by Cypress
- uses: actions/upload-artifact@v3
if: always() && (steps.e2eTests.outcome == 'failure')
name: Upload Cypress failure screenshots
with:
name: cypress-screenshots
path: cypress/screenshots/**/*.png
if-no-files-found: ignore
retention-days: 1