File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 24
24
GATSBY_GOOGLE_API_KEY : ${{ secrets.STAGING_CI_GATSBY_GOOGLE_API_KEY }}
25
25
jobs :
26
26
update-dependencies :
27
+ name : Update node module dependencies
27
28
runs-on : ubuntu-latest
28
29
steps :
29
30
- name : Checkout project
41
42
- name : Install dependencies
42
43
run : npm install
43
44
lint :
45
+ name : Lint code and prose
44
46
runs-on : ubuntu-latest
45
47
needs :
46
48
- update-dependencies
@@ -64,12 +66,15 @@ jobs:
64
66
curl -sfL https://install.goreleaser.com/github.com/ValeLint/vale.sh | sh -s v2.4.0
65
67
export PATH="./bin:$PATH"
66
68
vale -v
67
- - name : Run linter
69
+ - name : Lint code
70
+ run : |
71
+ npm run lint
72
+ - name : Lint prose
68
73
run : |
69
- # npm run lint
70
74
export PATH="./bin:$PATH"
71
75
npm run lint:prose
72
76
build :
77
+ name : Build docs
73
78
runs-on : ubuntu-latest
74
79
needs :
75
80
- lint
@@ -96,11 +101,19 @@ jobs:
96
101
name : k6-docs
97
102
path : public/
98
103
deploy-to-staging :
104
+ name : Deploy to staging
99
105
runs-on : ubuntu-latest
100
106
needs :
101
107
- lint
102
108
- build
103
109
steps :
110
+ - name : Checkout project
111
+ uses : actions/checkout@v2
112
+ - name : Use Node.js 12.xs
113
+ uses : actions/setup-node@v1
114
+ with :
115
+ node-version : ' 12.x'
116
+ registry-url : ' https://registry.npmjs.org'
104
117
- name : Download artifact
105
118
uses : actions/download-artifact@v2
106
119
with :
You can’t perform that action at this time.
0 commit comments