Skip to content

Force upgrade to go 1.21 and enable the loopvar feature #157

Force upgrade to go 1.21 and enable the loopvar feature

Force upgrade to go 1.21 and enable the loopvar feature #157

Workflow file for this run

name: Run Tests
on: push
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
env:
CGO_ENABLED: 0
GOEXPERIMENT: loopvar
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Go Init
uses: ./.github/actions/go_init
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Go Test
run: |
go run main.go --version
go test -v -timeout 5m ./...
golangci:
name: lint
runs-on: ubuntu-latest
env:
GOEXPERIMENT: loopvar
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Go Init
uses: ./.github/actions/go_init
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.53