mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
make dogfood
This commit is contained in:
parent
089b5c9063
commit
8b15bc0a0a
2 changed files with 33 additions and 0 deletions
29
.github/workflows/dogfood.yml
vendored
Normal file
29
.github/workflows/dogfood.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
|
||||
name: Dogfood
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- v*
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [1.17.x]
|
||||
os: [ubuntu-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Dogfood
|
||||
run: make dogfood
|
4
Makefile
4
Makefile
|
@ -8,6 +8,10 @@ PROTOS_IMAGE=us-docker.pkg.dev/thog-artifacts/public/go-ci-1.17-1
|
|||
.PHONY: protos
|
||||
.PHONY: protos-windows
|
||||
.PHONY: vendor
|
||||
.PHONY: dogfood
|
||||
|
||||
dogfood:
|
||||
CGO_ENABLED=0 go run . git file://. --json --debug
|
||||
|
||||
install:
|
||||
CGO_ENABLED=0 go install .
|
||||
|
|
Loading…
Reference in a new issue