Skip to content

Try different go versions #86

Try different go versions

Try different go versions #86

Workflow file for this run

name: Build and Test
on:
push:
pull_request:
repository_dispatch:
schedule:
- cron: '05 5 1 * *' # <https://crontab.guru/#05_5_1_*_*> - "At 05:05 on day-of-month 1"
jobs:
build-and-test:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
go_version: [1.21.x, 1.22.x, 1.23.x]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go environment
uses: actions/setup-go@v5.1.0
with:
go-version: ${{ matrix.go_version }}
- name: Build
run: go build -v ./...
- name: test
run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic