mixing: Prepare v0.4.2. #6292
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: Go CI | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: ["1.22", "1.23"] | |
steps: | |
- name: Check out source | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Set up Go | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Use lint cache | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: | | |
~/.cache/golangci-lint | |
key: go-lint-${{ matrix.go }}-${{ hashFiles('./go.sum') }} | |
restore-keys: go-lint-${{ matrix.go }} | |
- name: Stablilize testdata timestamps | |
run: | | |
bash ./.github/stablilize_testdata_timestamps.sh "${{ github.workspace }}" | |
- name: Install Linters | |
run: "go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.60.1" | |
- name: Build | |
run: go build ./... | |
- name: Test | |
run: | | |
sh ./run_tests.sh |