cleanup actions #54
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
name: Run Tests | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.20' | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Run Linters | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.52.2 | |
test: | |
strategy: | |
matrix: | |
go-version: ['1.20', '1.21', '1.22'] | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Install Go | |
if: success() | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Run Tests | |
run: go test -v -covermode=count |