Skip to content

Merge pull request #36 from gomutex/gomutex-patch-1 #83

Merge pull request #36 from gomutex/gomutex-patch-1

Merge pull request #36 from gomutex/gomutex-patch-1 #83

Workflow file for this run

name: Go CI
on:
push:
branches:
- main
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.18.x, 1.19.x, 1.20.x, 1.21.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: go get .
- name: Test with Go
run: go test -json ./... > TestResults-${{ matrix.go-version }}.json
- name: Upload Go test results
uses: actions/upload-artifact@v4
with:
name: Go-results-${{ matrix.go-version }}
path: TestResults-${{ matrix.go-version }}.json