Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

chore: adjust makefile to be able to use in GH action (#73 ) #277

chore: adjust makefile to be able to use in GH action (#73 )

chore: adjust makefile to be able to use in GH action (#73 ) #277

Workflow file for this run

name: Makefile CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Lint
run: make lint
- name: Test
run: make test
container-image-build:
runs-on: ubuntu-latest
strategy:
matrix:
# See ../Makefile for value of single arch PLATFORM used with targets docker-build and podman-build
# NOTE: to build multiple arches, see ../Makefile and use target docker-buildx with PLATFORMS
# only run this with podman since we have docker builds in pr-docker-build.yaml
# TODO: do we really even need this check?
engine: [podman]
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: ${{ matrix.engine }}-build
run: make ${{ matrix.engine }}-build