Skip to content

Commit

Permalink
ci: move tests from Travis CI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
buchdag committed Jun 15, 2021
1 parent ea4d0e8 commit 4c53a86
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 10 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Tests

on:
push:
paths-ignore:
- 'LICENSE'
- '**.md'
- 'examples/*'
- 'templates/*'
pull_request:
paths-ignore:
- 'LICENSE'
- '**.md'
- 'examples/*'
- 'templates/*'

jobs:
unit:
name: Unit Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install dependencies
run: make get-deps

- name: Build docker-gen
run: make docker-gen

- name: Check code formatting
run: make check-gofmt

- name: Run tests
run: make test
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ release: dist
tar -cvzf docker-gen-darwin-amd64-$(TAG).tar.gz -C dist/darwin/amd64 docker-gen

get-deps:
go get ./...
go mod download

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

0 comments on commit 4c53a86

Please sign in to comment.