Skip to content

Commit

Permalink
Merge pull request #90 from gofrs/CameronAckermanSEL-patch-1
Browse files Browse the repository at this point in the history
Replace Travis CI with Github Actions
  • Loading branch information
cameracker authored Sep 6, 2021
2 parents 4b36aa0 + 8b4e723 commit 8e62f78
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 22 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Go

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

build:
name: Build + Test Stable
runs-on: ubuntu-latest
env:
GO111MODULE: auto
steps:

- name: Build
uses: actions/setup-go@v2
with:
go-version: '1.17.x'

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get Coverage
run: go get golang.org/x/tools/cmd/cover

- name: Build
run: go build -v ./...

- name: Test
run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic

- name: Coverage
uses: codecov/codecov-action@v2

build-legacy:
name: Build + Test Previous Stable
runs-on: ubuntu-latest
env:
GO111MODULE: auto
steps:

- name: Build
uses: actions/setup-go@v2
with:
go-version: '1.16.x'

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Build
run: go build -v ./...

- name: Test
run: go test ./...
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

0 comments on commit 8e62f78

Please sign in to comment.