File tree 1 file changed +31
-2
lines changed 1 file changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,35 @@ name: CI
3
3
on : ['push', 'pull_request']
4
4
5
5
jobs :
6
+ build :
7
+ name : Build
8
+ runs-on : ubuntu-latest
9
+
10
+ steps :
11
+ - uses : actions/checkout@v3
12
+ - name : Use Node.js 20.x
13
+ uses : actions/setup-node@v3
14
+ with :
15
+ node-version : 20.x
16
+
17
+ - uses : actions/cache@v3
18
+ id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
19
+ with :
20
+ path : ' **/node_modules'
21
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
22
+ restore-keys : |
23
+ ${{ runner.os }}-yarn-
24
+
25
+ - name : yarn install
26
+ if : steps.yarn-cache.outputs.cache-hit != 'true' # Over here!
27
+ run : yarn install --frozen-lockfile --ignore-scripts
28
+
29
+ - name : yarn build
30
+ run : yarn build
31
+
32
+ env :
33
+ CI : true
34
+
6
35
lint :
7
36
name : Lint
8
37
runs-on : ubuntu-latest
60
89
run : yarn install --frozen-lockfile --ignore-scripts
61
90
62
91
- name : yarn test
63
- run : yarn test --reporters="default" --reporters="github-actions"
92
+ run : yarn test --ci -- reporters="default" --reporters="github-actions"
64
93
65
94
env :
66
95
CI : true
@@ -101,7 +130,7 @@ jobs:
101
130
runs-on : ubuntu-latest
102
131
steps :
103
132
- uses : actions/checkout@v3
104
- - uses : streetsidesoftware/cspell-action@main
133
+ - uses : streetsidesoftware/cspell-action@v2
105
134
with :
106
135
# Github token used to fetch the list of changed files in the commit.
107
136
# Default: ${{ github.token }}
You can’t perform that action at this time.
0 commit comments