Skip to content

Revert "cleanup"

Revert "cleanup" #19

Workflow file for this run

---
name: CI
# Controls when the workflow will run
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
golangci-lint:
permissions:
contents: read
pull-requests: read
runs-on: ubuntu-latest
steps:
# Get the repositery's code
- name: Checkout
uses: actions/checkout@v3
- name: Set up Golang
uses: actions/setup-go@v3
with:
go-version: '1.20.x'
check-latest: true
cache: true
- name: Run golangci-lint
uses: golangci/[email protected]
with:
version: latest
args: --verbose
test:
strategy:
fail-fast: false
matrix:
platform:
- ubuntu
go:
- 20
name: 'tests on ${{ matrix.platform }} | 1.${{ matrix.go }}.x'
runs-on: ${{ matrix.platform }}-latest
steps:
# Get the repositery's code
- name: Checkout
uses: actions/checkout@v3
- name: Set up Golang
uses: actions/setup-go@v3
with:
go-version: '1.${{ matrix.go }}.x'
cache: true
- name: Run tests
run: go clean -testcache && go test -race -cover -covermode=atomic ./...