Bump actions/setup-go from 5.0.0 to 5.0.1 #64
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: 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.19.x, 1.20.x] | |
platform: [ubuntu-latest] | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Run mod tidy | |
run: go mod tidy | |
- name: Run vet | |
run: go vet ./... | |
- name: Run fmt | |
run: go fmt ./... | |
- name: Check if directory is clean | |
run: git diff --exit-code | |
- 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 |