Skip to content

refactor(github-action): change go version #2

refactor(github-action): change go version

refactor(github-action): change go version #2

Workflow file for this run

name: Go lint & test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup go
uses: actions/setup-go@v4
with:
go-version: '1.20.6'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.6.0
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup go
uses: actions/setup-go@v4
with:
go-version: '1.20.6'
- name: test
run: |
go test -v -cover ./...