Merge pull request #18 from chainguard-dev/dependabot/go_modules/gola… #72
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: 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 | |