Skip to content

Refine interactive filters and target labels #136

Refine interactive filters and target labels

Refine interactive filters and target labels #136

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
cache-dependency-path: |
go.sum
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.12.0
- name: Run unit and integration tests
run: make test
- name: Build default Bomly binary
run: go build -o /tmp/bomly ./cmd/bomly
- name: Build lite Bomly binary
run: go build -tags "bomly_external_syft,bomly_external_grype" -o /tmp/bomly-lite ./cmd/bomly
- name: Check Go formatting
run: make fmt-check
- name: Check module metadata drift
shell: bash
run: |
set -euo pipefail
go mod tidy
git diff --exit-code -- go.mod go.sum
- name: Check generated documentation drift
shell: bash
run: |
set -euo pipefail
make generate
git diff --exit-code