From e302ba86a9a19e1d535f971f8073f04d0edb9de0 Mon Sep 17 00:00:00 2001 From: Oscar Reimer Date: Thu, 12 Sep 2024 09:35:33 +0200 Subject: [PATCH] Add test of scan output --- .github/workflows/debricked.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/debricked.yml b/.github/workflows/debricked.yml index 7b870357..5f4316ab 100644 --- a/.github/workflows/debricked.yml +++ b/.github/workflows/debricked.yml @@ -19,5 +19,8 @@ jobs: run: | cd cmd/debricked go generate -v -x - - run: | - go run cmd/debricked/main.go scan -t ${{ secrets.DEBRICKED_TOKEN }} -e "pkg/**" -e "test/**" -e "**/testdata/**" + - uses: GuillaumeFalourd/assert-command-line-output@v2.3 + with: + command_line: go run cmd/debricked/main.go scan -t ${{ secrets.DEBRICKED_TOKEN }} -e "pkg/**" -e "test/**" -e "**/testdata/**" + contains: AUTOMATION RULE + expected_result: PASSED