Skip to content

Add workflow dispatch for blackduck scan action. #42

Add workflow dispatch for blackduck scan action.

Add workflow dispatch for blackduck scan action. #42

Workflow file for this run

name: Build Application
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build Application
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Cache Go modules
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
${{ github.workspace }}/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build Application
run: go build -v ./...
- name: Run Tests
run: go test -v -failfast ./...