Skip to content

Commit f584bb5

Browse files
committed
.github: add Github Actions
And remove Travis CI.
1 parent 0e7398d commit f584bb5

File tree

2 files changed

+40
-17
lines changed

2 files changed

+40
-17
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
on: [push, pull_request]
2+
name: Test
3+
jobs:
4+
test:
5+
strategy:
6+
matrix:
7+
go-version: [1.15.x]
8+
platform: [ubuntu-18.04]
9+
runs-on: ${{ matrix.platform }}
10+
steps:
11+
- name: Install Go
12+
uses: actions/setup-go@v2
13+
with:
14+
go-version: ${{ matrix.go-version }}
15+
- uses: actions/cache@v2
16+
with:
17+
path: /usr/local/meter/bin
18+
key: ${{ runner.os }}-meterbin-v1-${{ hashFiles('**/Makefile') }}
19+
restore-keys: |
20+
${{ runner.os }}-meterbin-v1-
21+
- uses: actions/cache@v2
22+
with:
23+
path: /github/home/.cache
24+
key: ${{ runner.os }}-go-v1-${{ hashFiles('**/go.sum') }}
25+
restore-keys: |
26+
${{ runner.os }}-go-v1-
27+
- uses: actions/checkout@v2
28+
with:
29+
path: './src/github.com/kevinburke/go-bindata'
30+
# staticcheck needs this for GOPATH
31+
- run: |
32+
echo "GOPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV
33+
echo "PATH=$GITHUB_WORKSPACE/bin:$PATH" >> $GITHUB_ENV
34+
echo "DEBIAN_FRONTEND=noninteractive" >> $GITHUB_ENV
35+
- name: Download dependencies
36+
run: go get -t -v ./...
37+
working-directory: './src/github.com/kevinburke/go-bindata'
38+
- name: Run tests
39+
run: make ci
40+
working-directory: './src/github.com/kevinburke/go-bindata'

.travis.yml

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

0 commit comments

Comments
 (0)