Skip to content

Commit

Permalink
ci: github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fntlnz committed Mar 20, 2023
1 parent fe2caad commit 9161391
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: testing

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

permissions:
contents: read

jobs:
test:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, macos-latest]
go: ["1.16", "1.17", "1.18", "1.19"]
include:
- go: "1.16"
GO_VERSION: "~1.16.0"
- go: "1.17"
GO_VERSION: "~1.17.0"
- go: "1.18"
GO_VERSION: "~1.18.0"
- go: "1.19"
GO_VERSION: "~1.19.0"
runs-on: ${{ matrix.os }}

steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.GO_VERSION }}
check-latest: true

- name: Check out the source code
uses: actions/checkout@v3

- name: Run tests
run: go test -v -race

0 comments on commit 9161391

Please # to comment.