Skip to content

Commit

Permalink
migrate from Travis CI and CircleCI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Oct 2, 2019
1 parent 2a13152 commit e3fa647
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 81 deletions.
53 changes: 0 additions & 53 deletions .circleci/config.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: 'tool'

on: [push, pull_request]

jobs:

tool:
strategy:
max-parallel: 3
matrix:
os: [ ubuntu-latest, windows-latest, macOS-latest ]
go: [ 1.11.x, 1.12.x, 1.13.x ]
runs-on: ${{ matrix.os }}
steps:

- name: Setup go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}

- name: install richgo
run: go install github.com/kyoh86/richgo@v0.3.3

- uses: actions/checkout@v1

- name: run tests
run: richgo test -v ./...

- name: check formatting
run: diff -u <(echo -n) <(gofmt -d -s .)

- run: go build
env:
GO111MODULE: on

- name: go vet
run: |
if [ -z $NOVET ]; then
diff -u <(echo -n) <(go vet . 2>&1 | grep -vE 'ExampleCommand|bash_completions.*Fprint');
fi
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

0 comments on commit e3fa647

Please sign in to comment.