Skip to content

Fix incorrect syntax to set GOVERSION in GitHub Action #4

Fix incorrect syntax to set GOVERSION in GitHub Action

Fix incorrect syntax to set GOVERSION in GitHub Action #4

Workflow file for this run

name: Build
on:
pull_request:
push:
branches:
- main
env:
GOVERSION: 1.20
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GOVERSION }}
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
arch: [amd64, arm64, mipsle]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GOVERSION }}
- name: Build
run: go build -v ./...
env:
GOARCH: ${{ matrix.arch }}
GOOS: linux