Skip to content

add verify prod and refactor terraform check/deploy #468

add verify prod and refactor terraform check/deploy

add verify prod and refactor terraform check/deploy #468

Workflow file for this run

# Copyright 2024 Chainguard, Inc.
# SPDX-License-Identifier: Apache-2.0
name: go-build-test
on:
pull_request:
branches:
- 'main'
push:
branches:
- 'main'
jobs:
go-build-test:
runs-on: ubuntu-latest
steps:
- name: Check out code onto GOPATH
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: Set up Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: './go.mod'
check-latest: true
- name: build
run: |
go build -o octo-sts ./cmd/app
- name: test
run: |
# Exclude running unit tests against third_party repos.
go test -v -race ./...