From f25eec0f345f8116dab1a7183a247a5b957ceb11 Mon Sep 17 00:00:00 2001 From: matteo-cristino Date: Fri, 8 Mar 2024 12:27:44 +0100 Subject: [PATCH] =?UTF-8?q?ci(test):=20=F0=9F=91=B7=E2=80=8D=20add=20unit?= =?UTF-8?q?=20test=20to=20ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 174422e..bf673e9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,15 +5,32 @@ on: pull_request: jobs: + unit_test: + runs-on: ubuntu-latest + name: ๐Ÿงช unit test + steps: + - name: ๐Ÿ›Ž๏ธ Checkout + uses: actions/checkout@v4 + - name: โฌ Install Zenroom + run: | + wget https://github.com/dyne/zenroom/releases/latest/download/zenroom -O zenroom + chmod +x zenroom + sudo cp zenroom /usr/local/bin + - name: ๐Ÿšจ Run test + run: make unit-test api_test: runs-on: ubuntu-latest name: ๐Ÿงช VCI API Tests steps: - - uses: actions/checkout@v3 - - run: make & - - run: npx stepci run "tests/credential_issuer.yml" + - name: ๐Ÿ›Ž๏ธ Checkout + uses: actions/checkout@v3 + - name: ๐Ÿ—๏ธ build + run: make & + - name: ๐Ÿšจ Run api test + run: npx stepci run "tests/credential_issuer.yml" publish_docker_image: needs: api_test + name: ๐Ÿณ publish docker image if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' uses: interfacerproject/workflows/.github/workflows/publish-ghcr.yml@main secrets: inherit