Skip to content

Commit

Permalink
Merge pull request #117 from stmcginnis/github-actions
Browse files Browse the repository at this point in the history
Switch to GitHub Actions for CI
  • Loading branch information
stmcginnis authored Jan 25, 2021
2 parents 32343b1 + cc3f727 commit 136693b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 4 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Checks
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:

# Get the code
- uses: actions/checkout@v2

# Setup our go environment
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.15.0'

# Install extra dependencies
- name: Install dependencies
run: |
go version
go get -u golang.org/x/lint/golint
# Build the code
- name: Run build
run: go build .

# Vet and lint
- name: Run vet & lint
run: |
go vet .
golint .
# Run unit tests
- name: Run tests
run: make test
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

0 comments on commit 136693b

Please sign in to comment.