Skip to content

Commit d73cce5

Browse files
committed
checkout project for deploy job as well
1 parent 3460b7a commit d73cce5

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/staging.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ env:
2424
GATSBY_GOOGLE_API_KEY: ${{ secrets.STAGING_CI_GATSBY_GOOGLE_API_KEY }}
2525
jobs:
2626
update-dependencies:
27+
name: Update node module dependencies
2728
runs-on: ubuntu-latest
2829
steps:
2930
- name: Checkout project
@@ -41,6 +42,7 @@ jobs:
4142
- name: Install dependencies
4243
run: npm install
4344
lint:
45+
name: Lint code and prose
4446
runs-on: ubuntu-latest
4547
needs:
4648
- update-dependencies
@@ -64,12 +66,15 @@ jobs:
6466
curl -sfL https://install.goreleaser.com/github.com/ValeLint/vale.sh | sh -s v2.4.0
6567
export PATH="./bin:$PATH"
6668
vale -v
67-
- name: Run linter
69+
- name: Lint code
70+
run: |
71+
npm run lint
72+
- name: Lint prose
6873
run: |
69-
# npm run lint
7074
export PATH="./bin:$PATH"
7175
npm run lint:prose
7276
build:
77+
name: Build docs
7378
runs-on: ubuntu-latest
7479
needs:
7580
- lint
@@ -96,11 +101,19 @@ jobs:
96101
name: k6-docs
97102
path: public/
98103
deploy-to-staging:
104+
name: Deploy to staging
99105
runs-on: ubuntu-latest
100106
needs:
101107
- lint
102108
- build
103109
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'
104117
- name: Download artifact
105118
uses: actions/download-artifact@v2
106119
with:

0 commit comments

Comments
 (0)