Skip to content

Merge pull request #18 from chainguard-dev/dependabot/go_modules/gola… #72

Merge pull request #18 from chainguard-dev/dependabot/go_modules/gola…

Merge pull request #18 from chainguard-dev/dependabot/go_modules/gola… #72

Workflow file for this run

name: ci
on:
push:
branches: ['main']
pull_request:
branches: ['main']
workflow_dispatch:
permissions:
contents: read
jobs:
ci:
name: ci
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19
- uses: actions/checkout@v3
- run: go build
- run: go test ./...
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
- uses: imjasonh/setup-crane@v0.2
- run: ./e2e-test.sh
# fmt and check terraform configs
- run: |
# Run a local repo for ko build to push to.
go install github.com/google/go-containerregistry/cmd/registry@latest
registry &
export KO_DOCKER_REPO=localhost:1338
- run: |
terraform init
terraform validate
terraform fmt -check -diff
- uses: aquasecurity/tfsec-action@v1.0.0