Merge pull request #106 from arran4/issue97 #277
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: Test | |
jobs: | |
version: | |
name: Test | |
permissions: | |
contents: read | |
strategy: | |
matrix: | |
go-version: ['oldstable', 'stable'] | |
os: [ubuntu-latest, macos-13, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "${{ matrix.go-version }}" | |
- name: Go Test | |
run: go test -race ./... | |
module: | |
name: Test | |
permissions: | |
contents: read | |
strategy: | |
matrix: | |
go-version-file: ['go.mod'] | |
os: [ubuntu-latest, macos-13, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: "${{ matrix.go-version-file }}" | |
- name: Go Test | |
run: go test -race ./... |