Skip to content

Merge pull request #30 from getsops/dependabot/go_modules/google.gola… #54

Merge pull request #30 from getsops/dependabot/go_modules/google.gola…

Merge pull request #30 from getsops/dependabot/go_modules/google.gola… #54

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@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- 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