Skip to content

Commit

Permalink
.github: add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinburke1 authored and kevinburke committed Apr 29, 2020
1 parent b61ce1a commit fc6f9ac
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.13.x, 1.14.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@master
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@master
with:
path: './src/github.com/github-release/github-release'
# staticcheck needs this for GOPATH
- run: echo "::set-env name=GOPATH::$GITHUB_WORKSPACE"
- run: echo "::set-env name=PATH::$GITHUB_WORKSPACE/bin:$PATH"
- name: Download dependencies
run: go get -t -v ./...
working-directory: './src/github.com/github-release/github-release'
- name: Run tests
run: make test
working-directory: './src/github.com/github-release/github-release'
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,7 @@ clean:
rm $(EXECUTABLE) || true
rm -rf bin/

test:
go test ./...

.PHONY: clean release dep install

0 comments on commit fc6f9ac

Please sign in to comment.