Skip to content

feat: change log level from quiet to debug for better troubleshooting… #10

feat: change log level from quiet to debug for better troubleshooting…

feat: change log level from quiet to debug for better troubleshooting… #10

Workflow file for this run

name: AIBomGen-cli Go Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.25.x', '1.24.x', '1.23.x', '1.22.x', '1.21.x' ]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
check-latest: true
cache: true
cache-dependency-path: |
**/go.sum
**/go.work.sum
- name: Show Go env
run: |
go version
go env GOMODCACHE GOCACHE GOOS GOARCH
- name: Install dependencies
run: go mod tidy
- name: Run tests (no coverage)
if: ${{ matrix.go-version != '1.25.x' }}
run: go test ./...
- name: Run tests (with coverage)
if: ${{ matrix.go-version == '1.25.x' }}
run: go test ./... -coverprofile=coverage.out -covermode=atomic
- name: Upload coverage to Codecov
if: ${{ matrix.go-version == '1.25.x' }}
uses: codecov/codecov-action@v4
with:
file: ./coverage.out
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
- name: Build
run: go build ./...