Skip to content

refactor: fix linting errors #9

refactor: fix linting errors

refactor: fix linting errors #9

Workflow file for this run

name: Pull Request Build
on:
pull_request:
types:
- opened
- synchronize
jobs:
build-pr:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- dockerfile: ./Dockerfile
image: starbops/virtbmc-controller
- dockerfile: ./Dockerfile.virtbmc
image: starbops/virtbmc
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ matrix.image }}
- name: Run tests
run: make test
- name: Build binaries
run: make build
- name: Docker build
uses: docker/build-push-action@v6
with:
provenance: false
context: .
platforms: linux/amd64,linux/arm64
file: ${{ matrix.dockerfile }}
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}