Skip to content

Commit bad661b

Browse files
authored
Merge pull request #228 from netlify/from-travis-to-gh-action
Migrate from Travis to GitHub Action
2 parents 4e1059d + f2481fb commit bad661b

File tree

2 files changed

+49
-32
lines changed

2 files changed

+49
-32
lines changed

.github/workflows/test.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Test
2+
on:
3+
# Ensure GitHub actions are not run twice for same commits
4+
push:
5+
branches: [master]
6+
tags: ['*']
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
10+
jobs:
11+
test-node:
12+
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, macOS-latest, windows-latest]
16+
node_version: [12]
17+
runs-on: ${{ matrix.os }}
18+
steps:
19+
- name: Install Node.js ${{ matrix.node }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node_version }}
23+
- name: Git checkout
24+
uses: actions/checkout@v1
25+
- name: Install dependencies
26+
run: npm install
27+
- name: Tests
28+
run: npm test
29+
test-go:
30+
name: Go ${{ matrix.go_version }} on ${{ matrix.os }}
31+
strategy:
32+
matrix:
33+
os: [ubuntu-latest, macOS-latest, windows-latest]
34+
go_version: [1.13.x, 1.14.x]
35+
runs-on: ${{ matrix.os }}
36+
steps:
37+
- name: Install Go ${{ matrix.go }}
38+
uses: actions/setup-go@v2-beta
39+
with:
40+
go-version: ${{ matrix.go_version }}
41+
- name: Checkout code
42+
uses: actions/checkout@v2
43+
- name: Install make
44+
run: choco install make
45+
if: ${{ matrix.os == 'windows-latest' }}
46+
- name: Install dependencies
47+
run: make deps
48+
- name: Tests
49+
run: make test

.travis.yml

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

0 commit comments

Comments
 (0)