Skip to content

Consolidate oem structs #57

Consolidate oem structs

Consolidate oem structs #57

Workflow file for this run

name: 'prechecks'
on:
workflow_dispatch:
pull_request_target:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup golang environment
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Install dependencies
run: go mod tidy
- name: Run go test
run: make test
- name: Run Whitesource/Mend scan
run: |
curl -LJO https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar
export WS_CHECHKPOLICIES=true
export WS_FORCECHECKALLDEPENDENCIES=true
export WS_FORCEUPDATE=true
export WS_UPDATEINVENTORY=true
java -jar wss-unified-agent.jar -apiKey ${{ secrets.MEND_API_KEY }} -product ${{ secrets.MEND_PRODUCT_NAME }} -project WS-fishymetrics
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup golang environment
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Install dependencies
run: go mod tidy
- name: Make sure app can build
run: make build