-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (48 loc) · 1.32 KB
/
build-and-test.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
name: Build & Test
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CACHE_DIR: "node_modules/.cache/test"
COUNTDOWN_EMAIL: ${{ secrets.COUNTDOWN_EMAIL }}
COUNTDOWN_PASSWORD: ${{ secrets.COUNTDOWN_PASSWORD }}
GROCY_API_KEY: ${{ secrets.GROCY_API_KEY }}
GROCY_URL: ${{ secrets.GROCY_URL }}
GT_LOG_LEVEL: "INFO"
PAKNSAVE_EMAIL: ${{ secrets.PAKNSAVE_EMAIL }}
PAKNSAVE_PASSWORD: ${{ secrets.PAKNSAVE_PASSWORD }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"
- name: Install dependencies
run: yarn install
- name: Build
run: yarn run build -t prod
- name: Upload build
uses: actions/upload-artifact@v3
with:
name: Build Output
path: build/out
- name: Typecheck
run: yarn tsc
- name: Lint
run: yarn run lint
- name: Test
run: yarn run test:internal:coverage
- name: Delete enormous test artifact
run: rm -r ./build/test-reports/tmp
- name: Upload test results
uses: actions/upload-artifact@v3
with:
name: Test Report
path: build/test-reports