Files
sanitize/.github/workflows/test.yml
T

28 lines
533 B
YAML

name: test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.19.x", "1.20.x", "1.21.x"]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Go ${{ matrix.go }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Run Go tests
run: |
go test -v ./...