diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index a258265..5953717 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -20,15 +20,11 @@ jobs: with: fetch-depth: 0 - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version-file: "go.mod" - cache: true + - uses: jetify-com/devbox-install-action@a03caf5813591bc882139eba6ae947930a83a427 # tag=v0.11.0 - name: Run tests run: | - make test + devbox run -- make test release: @@ -41,6 +37,8 @@ jobs: with: fetch-depth: 0 + - uses: jetify-com/devbox-install-action@a03caf5813591bc882139eba6ae947930a83a427 # tag=v0.11.0 + - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -51,12 +49,6 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version-file: "go.mod" - cache: true - # To be compatible with ENVs in 'make build'. Used in '.goreleaser.yaml' - name: Get SHA that triggered release run: | @@ -75,15 +67,13 @@ jobs: - name: Build release manifests run: | rm -rf config/release - make manifest-build + devbox run -- make manifest-build - name: Make release - uses: goreleaser/goreleaser-action@v5 - with: - version: v1.17.2 - args: release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: + goreleaser release - name: Container metadata id: meta diff --git a/.github/workflows/chart-lint-and-test.yaml b/.github/workflows/chart-lint-and-test.yaml index 122761c..3a3717b 100644 --- a/.github/workflows/chart-lint-and-test.yaml +++ b/.github/workflows/chart-lint-and-test.yaml @@ -14,15 +14,7 @@ jobs: with: fetch-depth: 0 - - name: Set up Helm - uses: azure/setup-helm@v3 - with: - version: v3.11.2 - - - name: Set up python - uses: actions/setup-python@v4 - with: - python-version: 3.9 + - uses: jetify-com/devbox-install-action@a03caf5813591bc882139eba6ae947930a83a427 # tag=v0.11.0 - name: Setup Chart Linting id: lint @@ -63,16 +55,9 @@ jobs: if: steps.list-changed.outputs.changed == 'true' # Check CRD update - - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version-file: "go.mod" - cache: true - # Build release manifests and test against chart versions - name: Check CRD status run: | rm -rf config/release - make manifest-build + devbox run -- make manifest-build diff -q config/release/crds.yaml charts/bifrost-gateway-controller/crds/crds.yaml diff --git a/.github/workflows/e2e-test.yaml b/.github/workflows/e2e-test.yaml index 4cebd51..d108a76 100644 --- a/.github/workflows/e2e-test.yaml +++ b/.github/workflows/e2e-test.yaml @@ -12,37 +12,22 @@ jobs: with: fetch-depth: 0 - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version-file: "go.mod" - cache: true - - - name: Install KIND - uses: helm/kind-action@v1.8.0 - with: - install_only: true - - - name: Install GoReleaser - uses: goreleaser/goreleaser-action@v5 - with: - version: latest - install-only: true + - uses: jetify-com/devbox-install-action@a03caf5813591bc882139eba6ae947930a83a427 # tag=v0.11.0 - name: Build controller and container run: | - make build docker-build + devbox run -- make build docker-build - name: Setup E2E KIND cluster run: | - make setup-e2e-test-cluster wait-ready-external-dns-test + devbox run -- make setup-e2e-test-cluster wait-ready-external-dns-test - name: Deploy controller to cluster run: | - make install cluster-load-controller-image deploy + devbox run -- make install cluster-load-controller-image deploy # Wait for controller to be ready - this allows for short and concise test timeouts until kubectl -n bifrost-gateway-controller-system wait pods -lcontrol-plane=controller-manager --for condition=Ready --timeout=120s ; do echo "."; sleep 1; done - name: Run E2E test suite run: | - make e2e-test + devbox run -- make e2e-test diff --git a/.github/workflows/pr-test.yaml b/.github/workflows/pr-test.yaml index b1c3968..df80ee5 100644 --- a/.github/workflows/pr-test.yaml +++ b/.github/workflows/pr-test.yaml @@ -23,7 +23,7 @@ jobs: - name: Verify release manifests without changes run: | rm -rf config/release - make manifest-build + devbox run -- make manifest-build git status --porcelain if [[ -z `git status --porcelain` ]]; then echo "No repo changes"; else echo "Repo have unexpected changes"; exit 1; fi