Skip to content

Recompile smoke workflows and preserve container workflow names #148

Recompile smoke workflows and preserve container workflow names

Recompile smoke workflows and preserve container workflow names #148

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.23'
- run: go vet ./...
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.23'
- run: go test -v -race -coverprofile=coverage.out ./...
- name: Upload coverage
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.out
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.23'
- run: go build -o bin/threat-detect ./cmd/threat-detect
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: threat-detect
path: bin/threat-detect
container-smoke:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Build and smoke test container image
run: make docker-smoke IMAGE_TAG=ci