Skip to content

Allow mounting secrets to prober server (#365) #1030

Allow mounting secrets to prober server (#365)

Allow mounting secrets to prober server (#365) #1030

Workflow file for this run

# Copyright 2022 Chainguard, Inc.
# SPDX-License-Identifier: Apache-2.0
name: Test
on:
pull_request:
branches: [ 'main', 'release-*' ]
push:
branches: [ 'main', 'release-*' ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with:
egress-policy: audit
- name: Check out code onto GOPATH
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
# In order:
# * Module download cache
# * Build cache (Linux)
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Set up Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: './go.mod'
check-latest: true
- run: |
# Exclude running unit tests against third_party repos.
go test -race ./...
- name: Ensure generated files are up-to-date
run: go generate ./...
- uses: chainguard-dev/actions/nodiff@main
with:
fixup-command: go generate ./...