Skip to content

Fix naming test result uploads name collisions #11

Fix naming test result uploads name collisions

Fix naming test result uploads name collisions #11

Workflow file for this run

on: [pull_request, push]
name: build
jobs:
build-test:
strategy:
matrix:
go-version: ["1.20", 1.21.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: go mod download
- name: Test with Go
run: go test -cover -json ./... > TestResults-${{ matrix.os }}-${{ matrix.go-version }}.json
- name: Upload Go test results
uses: actions/upload-artifact@v4
with:
name: Go-results-${{ matrix.os }}-${{ matrix.go-version }}
path: TestResults-${{ matrix.os }}-${{ matrix.go-version }}.json
# - name: Update coverage report
# uses: ncruces/go-coverage-report@v0
# with:
# report: true
# chart: true
# amend: true
# if: |
# matrix.os == 'ubuntu-latest' &&
# github.event_name == 'push'
# continue-on-error: true