Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

start using GitHub Actions as CI #43

Open
wants to merge 1 commit into
base: master
from
Open
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

start using GitHub Actions as CI

The tests are disabled for now, since they're not fully functional yet.
But we can at least ensure the code builds, passes vet, and follows
gofmt.
  • Loading branch information
mvdan committed Sep 18, 2019
commit 4931145bec18b7a868d8da49220edf1e1f634415
@@ -0,0 +1,26 @@
on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.12.x, 1.13.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v1

# TODO: reenable once the tests are finished
# - name: Test
# run: go test ./...

- name: gofmt check
run: diff <(echo -n) <(gofmt -d .)
if: matrix.platform == 'ubuntu-latest'
- name: vet check
run: go vet ./...
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.