-
Notifications
You must be signed in to change notification settings - Fork 10
76 lines (60 loc) · 1.41 KB
/
docs-and-tests.yaml
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
on:
push:
branches:
- master
permissions:
actions: read
checks: write
contents: read
id-token: write
pages: write
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: node 22
uses: actions/setup-node@v4
with:
node-version: 22
- name: install
run: npm install
- name: build
run: npm run build
- name: eslint
run: npm run eslint
- name: test
run: npm run test-ci
- name: publish test results
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Tests
path: test-report.xml
reporter: jest-junit
docs:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: node 22
uses: actions/setup-node@v4
with:
node-version: 22
- name: install
run: npm install
- name: build
run: npm run build
- name: docgen
run: npm run docgen
- name: build
run: npm run docs-build
- name: upload
uses: actions/upload-pages-artifact@v3
with:
path: docs
- name: deploy
uses: actions/deploy-pages@v4
with:
token: ${{ github.token }}