Bump sigs.k8s.io/controller-runtime from 0.15.0-alpha.0 to 0.15.0-bet… #371
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 Workflow | |
on: | |
- push | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Cache Buildx | |
uses: actions/cache@v3 | |
with: | |
path: /tmp/buildx-cache | |
key: buildx-${{ github.sha }} | |
restore-keys: buildx- | |
- name: Build | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
cache-from: type=local,src=/tmp/buildx-cache | |
cache-to: type=local,mode=max,dest=/tmp/buildx-cache.new | |
- name: Move cache | |
run: | | |
rm -rf /tmp/buildx-cache | |
mv /tmp/buildx-cache{.new,} | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
- name: Set up envtest | |
run: | | |
make setup-envtest | |
- name: Run tests | |
run: | | |
source <(bin/setup-envtest use latest -p env) | |
go test ./... |