Skip to content

Commit

Permalink
Run tests for master and pull requests (#303)
Browse files Browse the repository at this point in the history
Run tests on each commit in master and pull requests with Github Actions.
Remove Travis config file.
  • Loading branch information
miry authored Aug 27, 2021
1 parent c262ed0 commit 0653399
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 29 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Go

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

jobs:

build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.17', '1.16', '1.15', '1.14' ]
name: ${{ matrix.go }}
steps:
- uses: actions/checkout@v2

-
name: Setup go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}

-
name: Test
run: make test

-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: build --snapshot --rm-dist --skip-post-hooks --skip-validate
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

0 comments on commit 0653399

Please sign in to comment.