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 +