Skip to content

Merge branch 'main' into dependabot/github_actions/golangci/golangci-… #226

Merge branch 'main' into dependabot/github_actions/golangci/golangci-…

Merge branch 'main' into dependabot/github_actions/golangci/golangci-… #226

Workflow file for this run

on: [push, pull_request]
name: Unit Tests
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
test:
strategy:
matrix:
go-version: [1.20.x, 1.21.x, 1.22.x, 1.23.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- name: Install Go
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
- name: Test
run: go test ./...