Provide tar
for unpacking binaries
#94
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: Test | |
on: | |
push: | |
branches: | |
- main | |
- release-[0-9]+.[0-9]+ | |
pull_request: | |
branches: | |
- main | |
- release-[0-9]+.[0-9]+ | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
name: Lint | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Lint | |
run: | | |
go mod verify | |
make lint | |
make fmt | |
git diff --exit-code | |
- name: GoSec Scan | |
run: | | |
make gosec-scan | |
- name: Validate Dockerfile sync | |
run: | | |
diff \ | |
<(grep -v "^FROM .* builder$" Dockerfile) \ | |
<(grep -v "^FROM .* builder$" Dockerfile.rhtap) | |
test: | |
runs-on: ubuntu-latest | |
name: Test | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Build image | |
run: | | |
CONTAINER_ENGINE=docker make build-image | |
- name: Test image | |
run: | | |
make e2e-test |