Skip to content

add linting

add linting #3

Workflow file for this run

name: Go package
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.18', '1.19', '1.20', '1.21' ]
steps:
- uses: actions/checkout@v3
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Test with Go ${{ matrix.go-version }}
run: go test -json > TestResults-${{ matrix.go-version }}.json
- name: Upload Go test results for ${{ matrix.go-version }}
uses: actions/upload-artifact@v3
with:
name: Go-results-${{ matrix.go-version }}
path: TestResults-${{ matrix.go-version }}.json