Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 5372531

Browse files
authored
Replace Travis with GitHub Actions (#496)
* Add github actions * fix: Add yarn to shell.nix * fix: Make test work again * Rename job * Use frozen yarn lockfile and yarn cache * Separate, re-order steps * Only test node 12.x * fix: standalone build * chore: Upgrade netlify node/yarn versions * chore: Bundle yarn * Remove .travis.yml
1 parent c1fdbe2 commit 5372531

12 files changed

Lines changed: 147477 additions & 74 deletions

File tree

.github/workflows/test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Node CI
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
node-version: [12.x]
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
21+
- name: Get yarn cache
22+
id: yarn-cache
23+
run: echo "::set-output name=dir::$(yarn cache dir)"
24+
25+
- uses: actions/cache@v1
26+
with:
27+
path: ${{ steps.yarn-cache.outputs.dir }}
28+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
29+
restore-keys: |
30+
${{ runner.os }}-yarn-
31+
32+
- name: Install dependencies
33+
run: yarn --frozen-lockfile
34+
35+
- name: Run test
36+
run: yarn test
37+
env:
38+
CI: true

.travis.yml

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

0 commit comments

Comments
 (0)