Skip to content

Vc/complete fw verification #128

Vc/complete fw verification

Vc/complete fw verification #128

Workflow file for this run

name: lint, test and build image
on: [pull_request, push]
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: "1.22"
- name: Checkout code
uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: --config .golangci.yml --timeout 2m
version: v1.57.1
skip-cache: true
- name: Test
run: go test ./...
build:
runs-on: ubuntu-latest
needs: [lint-test]
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: "1.22"
- name: Checkout code
uses: actions/checkout@v4
- name: build binary
run: make build-linux
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build flipflop Docker image - no push
id: dockerbuild-flipflop
uses: docker/build-push-action@v5
with:
context: .
push: false
file: Dockerfile
- name: Scan image - flipflop
id: scan-flipflop-image
uses: anchore/scan-action@v3
with:
image: ghcr.io/metal-toolbox/flipflop:latest
acs-report-enable: true
fail-build: false
- name: Inspect action SARIF report
run: cat ${{ steps.scan.outputs.sarif }}
if: always()