run kind targets on the new repo #12
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: pull request checks | ||
on: | ||
pull_request: | ||
branches: ['*'] | ||
jobs: | ||
build-lint-test: | ||
name: Build, lint, test | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go: ['1.21','1.22'] | ||
steps: | ||
- name: install make | ||
run: sudo apt-get install make | ||
- name: set up go 1.x | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
- name: check format | ||
run: make fmt && git add -A && git diff --exit-code | ||
- name: build, lint, test | ||
run: make build lint test | ||
- name: check clean vendors | ||
run: go mod vendor | ||
- name: Report coverage | ||
if: ${{ matrix.go == '1.21' }} | ||
uses: codecov/codecov-action@v4 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
with: | ||
files: ./cover.out | ||
flags: unittests | ||
fail_ci_if_error: true | ||
verbose: true | ||
kubernetes-integration-tests: | ||
needs: [build, build-go, build-docs] | ||
Check failure on line 41 in .github/workflows/pull_request.yml GitHub Actions / pull request checksInvalid workflow file
|
||
runs-on: ubuntu-latest | ||
env: | ||
BPFMAN_IMG: quay.io/bpfman/bpfman:latest | ||
BPFMAN_AGENT_IMG: quay.io/bpfman/bpfman-agent:int-test | ||
BPFMAN_OPERATOR_IMG: quay.io/bpfman/bpfman-operator:int-test | ||
XDP_PASS_PRIVATE_IMAGE_CREDS: ${{ secrets.XDP_PASS_PRIVATE_IMAGE_CREDS }} | ||
steps: | ||
- name: Check disk space | ||
run: df -h | ||
- name: Free up space | ||
run: | | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf /opt/ghc | ||
sudo rm -rf "/usr/local/share/boost" | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
sudo rm -rf /usr/local/lib/android | ||
- name: Check disk space again | ||
run: df -h | ||
- name: setup golang | ||
uses: actions/setup-go@v5 | ||
with: | ||
# prettier-ignore | ||
go-version: ${{ matrix.go }} # yamllint disable-line rule:quoted-strings | ||
- name: cache go modules | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-build-codegen-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-codegen- | ||
- name: checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
## TODO(astoycos) Currently this is just done to ensure we have coverage | ||
## on all image builds. Ultimately we should be running the integration | ||
## tests with these locally built bytecode images. | ||
- name: build images | ||
run: make build-images | ||
- name: run integration tests | ||
run: make test-integration | ||
- name: Check disk space | ||
run: df -h | ||
## Upload diagnostics if integration test step failed. | ||
- name: upload diagnostics | ||
if: ${{ failure() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: kubernetes-integration-test-diag | ||
path: /tmp/ktf-diag* | ||
if-no-files-found: ignore |