From 48177a6bd986c75e0b2faa3854741eeb24a385b4 Mon Sep 17 00:00:00 2001 From: Marcin Dobrochowski Date: Wed, 8 May 2024 11:31:15 +0200 Subject: [PATCH] test subworkflow calling --- .github/workflows/pull-verify.yaml | 4 ++++ .github/workflows/unit-tests.yaml | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/unit-tests.yaml diff --git a/.github/workflows/pull-verify.yaml b/.github/workflows/pull-verify.yaml index 417e9891b..ccd304978 100644 --- a/.github/workflows/pull-verify.yaml +++ b/.github/workflows/pull-verify.yaml @@ -18,3 +18,7 @@ jobs: call-integration-tests: uses: ./.github/workflows/pull-verify/integration-tests.yaml + + call-unit-tests-2: + uses: ./.github/workflows/unit-tests.yaml + diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml new file mode 100644 index 000000000..15b43c6b9 --- /dev/null +++ b/.github/workflows/unit-tests.yaml @@ -0,0 +1,22 @@ +name: Unit tests + +on: [ workflow_call ] + +jobs: + operator-unit-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ../.github/actions/setup-go + - name: run test + run: make -C components/operator test + + serverless-unit-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ../.github/actions/setup-go + - uses: ../.github/actions/setup-libgit2 + - name: run test + run: make -C components/serverless test +