mirror of
https://github.com/getsops/sotp.git
synced 2026-02-05 09:45:59 +01:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8e8c483db8...de0fac2e45)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: 6.0.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
62 lines
1.3 KiB
YAML
62 lines
1.3 KiB
YAML
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@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- 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
|