Bump sigstore/cosign-installer from 871cdc754496eb3792209f6e81422fac01b793b4 to ef6a6b364bbad08abd36a5f8af60b595d12702f8 #164
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: Test | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.19.x | |
- run: go install golang.org/x/tools/cmd/[email protected] | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Test | |
run: go test ./... | |
- name: Format | |
run: go fmt ./... | |
- name: Vet | |
run: go vet ./... | |
- run: goimports -w . | |
- name: Verify No Changes | |
id: verify-no-changes | |
uses: tj-actions/[email protected] | |
- name: Fail If Changes | |
if: steps.verify-no-changes.outputs.files_changed == 'true' | |
run: "false" | |
integration-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.19.x | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Install | |
run: go install . | |
- name: Export Command Test | |
run: it/export.sh | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.19.x | |
- uses: actions/checkout@v3 | |
- name: Documentation Build | |
run: go run ./hack/generate-manual | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: man-pages | |
path: man/ | |
# This action tests two things: That the GitHub Action works (as defined in the action.yml file) and by running | |
# Paranoia on itself that we are shipping only the correct certs internally. | |
paranoia-action-self-check: | |
runs-on: ubuntu-latest | |
env: | |
CONTAINER_TAR: container.tar | |
steps: | |
- name: "Checkout code" | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build and export to Docker | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
load: true | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
outputs: type=docker,dest=${{ env.CONTAINER_TAR }} | |
- name: Paranoia Self-Check | |
uses: ./ | |
with: | |
target_tar: file://${{ env.CONTAINER_TAR }} |