Skip to content

Commit

Permalink
Add github workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
onrik committed Oct 21, 2022
1 parent 6d7dd3b commit cde59a6
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Tests

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
strategy:
matrix:
go-version: [1.17.x, 1.18.x, 1.19.x]

runs-on: ubuntu-latest

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

- name: Checkout code
uses: actions/checkout@v2

- name: Test
run: go test -covermode atomic -coverprofile=profile.cov ./...

- name: Coveralls
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
GO111MODULE=off go get github.com/mattn/goveralls
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github -ignore=examples/*/*

0 comments on commit cde59a6

Please sign in to comment.