Skip to content

refactor: use maps.Copy for merging maps in tests #196

refactor: use maps.Copy for merging maps in tests

refactor: use maps.Copy for merging maps in tests #196

Workflow file for this run

---
# This workflow will run the tests across a matrix of operating systems.
name: Go Test
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
go-tests:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
name: Go Tests (${{ matrix.os }})
steps:
- name: Checkout Repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Setup Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
cache: true
- name: Run Tests
shell: bash
run: |
echo "Testing with $(go env GOVERSION) on ${{ matrix.os }}"
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
go test -race -count 1 ./... -timeout=3m
else
go test -count 1 ./... -timeout=3m
fi