diff --git a/.github/workflows/go-tests.yml b/.github/workflows/go-tests.yml index 95e6c939..e3de5333 100644 --- a/.github/workflows/go-tests.yml +++ b/.github/workflows/go-tests.yml @@ -31,6 +31,8 @@ jobs: uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1 with: version: ${{ env.MISE_VERSION }} + - name: Reset changes in mise.lock after fresh mise install + run: git checkout mise.lock - name: Install dependencies run: | diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5a0f4144..fc17d039 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,6 +13,8 @@ on: - "go.*" permissions: contents: read +env: + MISE_VERSION: "2026.3.7" jobs: lint: runs-on: ubuntu-latest @@ -20,20 +22,14 @@ jobs: - name: Checkout code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: Set up Go - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 + - name: Install Mise + uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1 with: - go-version: "1.26.1" + version: ${{ env.MISE_VERSION }} + - name: Reset changes in mise.lock after fresh mise install + run: git checkout mise.lock - - name: golangci-lint - uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0 - with: - version: v2.11.2 - - - name: Format code - run: | - make format - git diff --exit-code || - (echo "Code is not formatted. Please run 'make format' and commit the changes." && exit 1) + - name: Lint + run: make lint timeout-minutes: 10