Skip to content

multi: Prepare Goele repo #8

multi: Prepare Goele repo

multi: Prepare Goele repo #8

Workflow file for this run

name: Build and Test
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
name: Go CI
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.23', '1.24']
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: ${{ matrix.go }}
cache: true # enables automatic go.mod/go.sum caching
cache-dependency-path: go.sum
- name: Cache golangci-lint
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/.cache/golangci-lint
key: golangci-lint-${{ matrix.go }}-${{ hashFiles('go.sum') }}
restore-keys: |
golangci-lint-${{ matrix.go }}-

Check failure on line 31 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 31
- name: Install golangci-lint
uses: golangci/golangci-lint-action@v9 # Latest stable (v9.0.0)
with:
version: v2.6.2 # exact version tested locally
args: --timeout=10m # optional
- name: Build
run: go build -v ./...
- name: Test
run: sh ./run_tests.sh