Skip to content

Bump actions/checkout from 4.2.0 to 4.2.1 #78

Bump actions/checkout from 4.2.0 to 4.2.1

Bump actions/checkout from 4.2.0 to 4.2.1 #78

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.19.x, 1.20.x]
platform: [ubuntu-latest]
steps:
- name: Install Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- 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