Update CODEOWNERS for workload scanning module #66
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: CI - Pull Request | |
on: | |
pull_request: | |
branches: | |
- master | |
env: | |
GO_VERSION: "^1.20" | |
jobs: | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: hashicorp/setup-terraform@v2 | |
- run: make fmt | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Lint | |
run: make lint | |
build-and-test: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
example: | |
- "secure_config_posture_identity_access/single/main.tf" | |
- "secure_config_posture_identity_access/organization/main.tf" | |
- "secure_threat_detection/single/main.tf" | |
- "secure_threat_detection/organization/main.tf" | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Cache modules | |
uses: actions/cache@v1 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Get dependencies | |
run: | | |
go install github.com/onsi/ginkgo/ginkgo@latest | |
# Check if we need to build any go packages in this repo. If not, remove below. | |
# - name: Build | |
# run: go build ./... | |
- name: Test | |
env: | |
EXAMPLES: examples/${{ matrix.example }} | |
run: make test |