Skip to content

fix(ci): pull runtime image before xpkg build #19

fix(ci): pull runtime image before xpkg build

fix(ci): pull runtime image before xpkg build #19

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.25'
- name: golangci-lint
uses: golangci/golangci-lint-action@v7
with:
version: v2.11.3
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.25'
- name: Run tests
run: go test -race -count=1 ./...
# benchmark:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-go@v5
# with:
# go-version: '1.25'
# - name: Run benchmarks
# run: go test -bench=. -benchmem -count=5 -run='^$' ./... | tee bench-output.txt
# - name: Download previous benchmark data
# uses: actions/cache@v4
# with:
# path: ./cache
# key: ${{ runner.os }}-benchmark
# - name: Store benchmark result
# uses: benchmark-action/github-action-benchmark@v1
# with:
# tool: 'go'
# output-file-path: bench-output.txt
# external-data-json-path: ./cache/benchmark-data.json
# fail-on-alert: true
# alert-threshold: '140%'
# github-token: ${{ secrets.GITHUB_TOKEN }}
render:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.25'
- name: Install crossplane CLI
run: |
XP_CHANNEL=stable XP_VERSION=v1.20.0 curl -sL https://raw.githubusercontent.com/crossplane/crossplane/master/install.sh | sh
sudo mv crossplane /usr/local/bin/
- name: Build Docker image
run: make build
- name: Render and verify
run: make render-check