Skip to content

Commit b21562e

Browse files
nschonniMylesBorins
authored andcommitted
chore: Split GitHub actions
Gives a better name for CI results on GitHub
1 parent 3b2357d commit b21562e

2 files changed

Lines changed: 24 additions & 20 deletions

File tree

.github/workflows/gatsby.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Gastby build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
11+
- uses: actions/cache@v1
12+
with:
13+
path: ~/.npm
14+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
15+
restore-keys: |
16+
${{ runner.os }}-node-
17+
18+
- name: Install Dependencies
19+
if: steps.cache.outputs.cache-hit != 'true'
20+
run: npm ci
21+
22+
- name: Run Gatsby Build
23+
run: npm run build
Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,8 @@
1-
name: Run CI steps for nodejs.dev
1+
name: Test
22

33
on: [push, pull_request]
44

55
jobs:
6-
build:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- uses: actions/checkout@v2
10-
11-
- uses: actions/cache@v1
12-
with:
13-
path: ~/.npm
14-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
15-
restore-keys: |
16-
${{ runner.os }}-node-
17-
18-
- name: Install Dependencies
19-
if: steps.cache.outputs.cache-hit != 'true'
20-
run: npm ci
21-
22-
- name: Run Gatsby Build
23-
run: npm run build
24-
256
test-ci:
267
runs-on: ubuntu-latest
278
steps:

0 commit comments

Comments
 (0)