Skip to content

[WIP] CI, build NEXT #1506

[WIP] CI, build NEXT

[WIP] CI, build NEXT #1506

Workflow file for this run

name: lint
on:
push:
branches:
- main
- 'release/**'
pull_request:
env:
CURRENT_GO_VERSION: 1.24
GOTOOLCHAIN: local
GO_INSTALL_DESTINATION: /opt
jobs:
go_current:
timeout-minutes: 5
name: "go stable"
runs-on: ubuntu-24.04
env:
GO_VERSION: ${{ env.CURRENT_GO_VERSION }}

Check failure on line 21 in .github/workflows/lint.yml

View workflow run for this annotation

GitHub Actions / lint

Invalid workflow file

The workflow is not valid. .github/workflows/lint.yml (Line: 21, Col: 19): Unrecognized named-value: 'env'. Located at position 1 within expression: env.CURRENT_GO_VERSION
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 1
- name: Environment setup
run:
echo "GO_VERSION=$(make install-go-resolve-version)" >> "$GITHUB_ENV"
echo "PATH=$GO_INSTALL_DESTINATION/go/bin:$HOME/go/bin:$PATH" >> "$GITHUB_ENV"
- uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
with:
path: /opt/go
key: golang-${{ env.GO_VERSION }}
- name: Install go and dev tools
run:
make install-go
make install-dev-tools
- name: make lint-imports
run:
make lint-imports
- name: make lint-mod
run:
make lint-mod
- name: make lint-go-all
run:
make lint-go
go_canary:
timeout-minutes: 5
name: "go canary"
runs-on: ubuntu-24.04
env:
GO_VERSION: canary
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 1
- name: Environment setup
run:
echo "GO_VERSION=$(make install-go-resolve-version)" >> "$GITHUB_ENV"
echo "PATH=$GO_INSTALL_DESTINATION/go/bin:$HOME/go/bin:$PATH" >> "$GITHUB_ENV"
- uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
with:
path: /opt/go
key: golang-${{ env.GO_VERSION }}
- name: Install go and dev tools
run:
make install-go
make install-dev-tools
- name: make lint-imports
run:
make lint-imports
- name: make lint-mod
run:
make lint-mod
- name: make lint-go-all
run:
make lint-go
other:
timeout-minutes: 5
name: "yaml | shell"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 1
- name: make lint-yaml
run:
make lint-yaml
- name: make lint-shell
run:
make lint-shell