Skip to content

Commit

Permalink
preparing go1.18 support
Browse files Browse the repository at this point in the history
  • Loading branch information
sio4 committed May 10, 2022
1 parent 8e88275 commit bffad87
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
name: Tests
on: [push]
on:
push:
branches:
- main
pull_request:

jobs:
tests-on:
name: ${{matrix.go-version}} ${{matrix.os}}
tests-off:
name: ${{ matrix.os }} - Go v${{ matrix.go-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: [1.17.x]
os: [macos-latest, windows-latest, ubuntu-latest]
go-version:
- "1.16.x"
- "1.17.x"
- "1.18.x"
os:
- "macos-latest"
- "windows-latest"
- "ubuntu-latest"
steps:
- name: Set up Go
uses: actions/setup-go@v2
- uses: actions/checkout@v3
- name: Setup Go ${{ matrix.go }}
uses: actions/setup-go@v3
with:
go-version: 1.17.x
- name: Checkout Code
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Test
go-version: ${{ matrix.go-version }}
- name: Tests
run: |
go mod tidy -v
go test -race ./...

0 comments on commit bffad87

Please sign in to comment.