Skip to content

chore(deps): bump the github-actions group with 2 updates #2765

chore(deps): bump the github-actions group with 2 updates

chore(deps): bump the github-actions group with 2 updates #2765

Workflow file for this run

name: CI
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, darwin, windows]
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- name: Load GO version
id: versions
uses: ./.github/actions/load-go-version
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e
with:
go-version: ${{ steps.versions.outputs.go-version }}
cache: true
- name: Load golangci-lint version
id: golangci-lint-version
run: echo "version=$(grep '^GOLANGCI_LINT_VERSION=' .versions | cut -d= -f2)" >> "$GITHUB_OUTPUT"
- name: Install golangci-lint
uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a
with:
version: ${{ steps.golangci-lint-version.outputs.version }}
install-only: true
- name: Run linting for ${{ matrix.goos }}
env:
GOOS: ${{ matrix.goos }}
run: make lint
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- name: Verify vendor/ is not present
run: stat vendor && exit 1 || exit 0
- name: Load GO version
id: versions
uses: ./.github/actions/load-go-version
- name: Validate .versions against Dockerfile ARGs
run: make validate-versions
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e
with:
go-version: ${{ steps.versions.outputs.go-version }}
cache: true
- name: Check go mod tidy
run: |
go mod tidy
git diff --exit-code go.mod go.sum
- name: Run tests with race detection
run: go test -race ./...
- name: validate
run: make validate