Skip to content

Commit 4c53a86

Browse files
committed
ci: move tests from Travis CI to GitHub Actions
1 parent ea4d0e8 commit 4c53a86

File tree

3 files changed

+36
-10
lines changed

3 files changed

+36
-10
lines changed

.github/workflows/tests.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- 'LICENSE'
7+
- '**.md'
8+
- 'examples/*'
9+
- 'templates/*'
10+
pull_request:
11+
paths-ignore:
12+
- 'LICENSE'
13+
- '**.md'
14+
- 'examples/*'
15+
- 'templates/*'
16+
17+
jobs:
18+
unit:
19+
name: Unit Tests
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
25+
- name: Install dependencies
26+
run: make get-deps
27+
28+
- name: Build docker-gen
29+
run: make docker-gen
30+
31+
- name: Check code formatting
32+
run: make check-gofmt
33+
34+
- name: Run tests
35+
run: make test

.travis.yml

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

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ release: dist
4141
tar -cvzf docker-gen-darwin-amd64-$(TAG).tar.gz -C dist/darwin/amd64 docker-gen
4242

4343
get-deps:
44-
go get ./...
44+
go mod download
4545

4646
check-gofmt:
4747
if [ -n "$(shell gofmt -l .)" ]; then \

0 commit comments

Comments
 (0)