Skip to content

Commit

Permalink
Merge pull request #5 from Songmu/actions
Browse files Browse the repository at this point in the history
introduce GitHub Actions
  • Loading branch information
Songmu authored Dec 3, 2019
2 parents 2122c1b + 1353c60 commit 30bd0d2
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 10 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: test
on:
push:
branches:
- "**"
pull_request: {}
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest
steps:
- name: setup go
uses: actions/setup-go@v1
with:
go-version: 1.x
- name: checkout
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: lint
run: |
GO111MODULE=off GOBIN=$(pwd)/bin go get golang.org/x/lint/golint
bin/golint -set_exit_status ./...
if: "matrix.os == 'ubuntu-latest' || matrix.os == 'macOS-latest'"
- name: test
run: go test -coverprofile coverage.out -covermode atomic ./...
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
github-token: ${{ secrets.github_token }}
path-to-profile: coverage.out
job-number: ${{ strategy.job-index }}
if: "matrix.os == 'ubuntu-latest'"
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ devel-deps: deps
cd $$tmpdir; \
go get ${u} \
golang.org/x/lint/golint \
github.com/mattn/goveralls \
github.com/Songmu/godzil/cmd/godzil; \
rm -rf $$tmpdir'

Expand Down

0 comments on commit 30bd0d2

Please sign in to comment.