-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (44 loc) · 1.21 KB
/
on-push.yml
File metadata and controls
56 lines (44 loc) · 1.21 KB
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
name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
run-checks:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
# Build library
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Install modules
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
# Run test and typecheck
- name: Typecheck
run: yarn typecheck
# - name: Run tests
# run: yarn test
# Build example app
- name: Install modules
run: yarn install --frozen-lockfile
working-directory: ./example
- name: Build
run: yarn build
working-directory: ./example
# Check documentation
- name: Generate documentation
run: yarn build:docs
- name: Check for documentation changes
run: |
if [[ -n $(git status --porcelain | grep "README.md") ]]; then
echo "Documentation is not up to date!"
exit 1
fi