Skip to content

Commit

Permalink
Add GitHub actions test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanck committed Feb 7, 2023
1 parent e6b203c commit 2a1af75
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: test

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

env:
GOPROXY: https://proxy.golang.org/

jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
go:
- 1.16
- 1.17
- 1.18
- 1.19
steps:
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # https://github.com/actions/checkout/releases/tag/v3.3.0
- name: Set up Go
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # https://github.com/actions/setup-go/releases/tag/v3.5.0
with:
go-version: ${{ matrix.go }}
- name: Go mod download
run: go mod download -x
- name: Go mod verify
run: go mod verify
- name: Run tests
run: go test -v ./...

0 comments on commit 2a1af75

Please sign in to comment.