Skip to content

Bump actions/setup-go from 5.5.0 to 6.0.0 #122

Bump actions/setup-go from 5.5.0 to 6.0.0

Bump actions/setup-go from 5.5.0 to 6.0.0 #122

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
paths-ignore:
- README.md
- docs/**
jobs:
test:
name: Go ${{ matrix.go-version }} (${{ matrix.platform }})
runs-on: ${{ matrix.platform }}
permissions:
contents: read
strategy:
fail-fast: false
matrix:
go-version: [1.22.x, 1.23.x]
platform: [ubuntu-latest]
steps:
- name: Install Go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Run mod tidy
run: go mod tidy
- name: Run vet
run: go vet ./...
- name: Run fmt
run: go fmt ./...
- name: Restore go/toolchain lines of go.mod
run: python3 .github/utils/patch-go.mod.py
- name: Check if directory is clean
run: git diff --exit-code
- name: Run mod tidy again
run: go mod tidy
- name: Import test key
run: gpg --import sops_functional_tests_key.asc
- name: Run tests
run: go test -v -race ./...
- name: Run main.go test1
run: go run main.go test1