-
-
Notifications
You must be signed in to change notification settings - Fork 8
64 lines (62 loc) · 1.66 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Continuous Integration
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 18.17.1
uses: actions/setup-node@v1
with:
node-version: 18.17.1
- run: yarn
- run: yarn build
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 18.17.1
uses: actions/setup-node@v1
with:
node-version: 18.17.1
- run: yarn
- run: yarn test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 18.17.1
uses: actions/setup-node@v1
with:
node-version: 18.17.1
- run: yarn
- run: yarn lint
# Not currently working, always some differences
# needs-docs-update:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Use Node.js 18.17.1
# uses: actions/setup-node@v1
# with:
# node-version: 18.17.1
# - run: yarn
# - run: yarn build:donateButtonNext
# - name: Get changes
# id: get-changes
# run: |
# if [ -z "$(git status --porcelain=v1 2>/dev/null)" ];
# then echo "::set-output name=changes::false";
# else echo "::set-output name=changes::true";
# fi
# - name: Fail if build resulted in changes
# id: check-changes
# if: steps.get-changes.outputs.changes == 'true'
# run: |
# echo "Uncommitted build artifacts exist, please check them in."
# git status
# exit 1