-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (37 loc) · 954 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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