Skip to content

chore: Update test workflow to use gotestsum #3

chore: Update test workflow to use gotestsum

chore: Update test workflow to use gotestsum #3

Workflow file for this run

on:
push:
branches:
- master
- main
paths:
- "**"
- "!docs/**"
- "!**.md"
pull_request:
paths:
- "**"
- "!docs/**"
- "!**.md"
name: Test
jobs:
Build:
strategy:
matrix:
go-version: [1.20.x, 1.21.x, 1.22.x]
platform: [ubuntu-latest, windows-latest, macos-latest, macos-14]
runs-on: ${{ matrix.platform }}
steps:
- name: Fetch Repository
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Setup gotestsum
uses: autero1/[email protected]
with:
gotestsum_version: 1.11.0
- run: gotestsum -f testname -- ./... -race