Skip to content

Merge pull request #10 from shiftleftcyber/feat/addSupportForCycloneD… #39

Merge pull request #10 from shiftleftcyber/feat/addSupportForCycloneD…

Merge pull request #10 from shiftleftcyber/feat/addSupportForCycloneD… #39

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Build & Test
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
cache: true
- name: Install Dependencies
run: |
go mod download
- name: Build
run: |
go version
go build -o bin/sbom-validator-example example/main.go
ls -la
ls -la bin
- name: Test
run: |
go test -v -coverprofile=coverage.out ./...
go tool cover -func=coverage.out