Skip to content

ci: publish coverage report #11

ci: publish coverage report

ci: publish coverage report #11

Workflow file for this run

name: ci
on:
push:
jobs:
verify:
name: Verify
runs-on: ubuntu-latest
env:
CODECOV_FILE: "${GITHUB_WORKSPACE}/build/coverage.xml"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.24' # The Go version to download (if necessary) and use.
- name: Generate
run:
- make generate format
- 'git diff --exit-code || (echo -e "\e[31mERROR: Run make generate format and commit changes\e[0m" && exit 1)'
- name: Lint
run:
- make lint
- name: Integration test
- make integration-test
- name: Code Coverage Report
uses: irongut/[email protected]
with:
filename: ${{ env.CODECOV_FILE }}
badge: true
indicators: true
format: markdown
output: both
image-build:
name: Image Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build images
uses: hiberbee/[email protected]
with:
skaffold-version: 2.14.1
command: build
file-output: build/images.json
- name: Archive image tags
uses: actions/upload-artifact@v4
with:
name: images
path: build/images.json