File tree 1 file changed +66
-0
lines changed
1 file changed +66
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : offlinedocs
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ paths :
8
+ - " offlinedocs/**"
9
+ pull_request :
10
+ paths :
11
+ - " offlinedocs/**"
12
+ workflow_dispatch :
13
+
14
+ # Cancel in-progress runs for pull requests when developers push
15
+ # additional changes
16
+ concurrency :
17
+ group : ${{ github.workflow }}-${{ github.ref }}
18
+ cancel-in-progress : ${{ github.event_name == 'pull_request' }}
19
+
20
+ jobs :
21
+ fmt :
22
+ name : fmt
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - name : Checkout
26
+ uses : actions/checkout@v3
27
+
28
+ - name : Install Pretier
29
+ run : |
30
+ cd offlinedocs
31
+ yarn
32
+
33
+ - name : Check format
34
+ run : |
35
+ cd offlinedocs
36
+ yarn format:check
37
+
38
+ lint :
39
+ name : lint
40
+ runs-on : ubuntu-latest
41
+ steps :
42
+ - name : Checkout
43
+ uses : actions/checkout@v3
44
+
45
+ - name : Setup Node
46
+ uses : ./.github/actions/setup-node
47
+
48
+ - name : lint
49
+ run : |
50
+ cd offlinedocs
51
+ yarn && yarn lint
52
+
53
+ build :
54
+ name : build
55
+ runs-on : ubuntu-latest
56
+ steps :
57
+ - name : Checkout
58
+ uses : actions/checkout@v3
59
+
60
+ - name : Setup Node
61
+ uses : ./.github/actions/setup-node
62
+
63
+ - name : Build
64
+ run : |
65
+ version="$(./scripts/version.sh)"
66
+ make -j build/coder_docs_"$version".tgz
You can’t perform that action at this time.
0 commit comments