From 8875bf8a5bae274b94dae8d213d6d531bbd53414 Mon Sep 17 00:00:00 2001 From: Lucas Hinderberger Date: Thu, 20 Jun 2024 13:57:22 +0200 Subject: [PATCH] ci: Adding apitest to test workflow and to "make all" (#82) * ci: Adding apitest to test workflow * ci: apitest was missing build step * ci: splitting apitest and build steps * ci: installing exiftool --- .github/workflows/unit-tests.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 5dee18d5..ff413a8a 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -15,6 +15,10 @@ jobs: name: unit-tests runs-on: ubuntu-latest steps: + - name: Install prerequisites + shell: bash + run: sudo apt install libimage-exiftool-perl + - name: Run go ${{ env.go_version }} uses: actions/setup-go@v5 with: @@ -27,6 +31,14 @@ jobs: shell: bash run: make test + - name: build executable for test suite + shell: bash + run: make build + + - name: execute apitest + shell: bash + run: make apitest + - name: Notify slack channel about a failure if: ${{ failure() }} uses: rtCamp/action-slack-notify@v2 @@ -38,4 +50,4 @@ jobs: SLACK_COLOR: "#ff0000" SLACK_MESSAGE: Unit tests failed SLACK_TITLE: Unit tests failed - SLACK_FOOTER: "" \ No newline at end of file + SLACK_FOOTER: ""