Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 3b2357d

Browse files
nschonniMylesBorins
authored andcommitted
build: Swap Travis-CI for GitHub Actions (#460)
1 parent 160a67c commit 3b2357d

2 files changed

Lines changed: 42 additions & 16 deletions

File tree

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Run CI steps for nodejs.dev
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
24+
25+
test-ci:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v2
29+
30+
- uses: actions/cache@v1
31+
with:
32+
path: ~/.npm
33+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
34+
restore-keys: |
35+
${{ runner.os }}-node-
36+
37+
- name: Install Dependencies
38+
if: steps.cache.outputs.cache-hit != 'true'
39+
run: npm ci
40+
41+
- name: Run test and coverage
42+
run: npm run test-ci

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)