From f96f0b7de920a9f4ba27b234918dab082464a25f Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Sun, 18 Aug 2024 09:49:12 +0200 Subject: [PATCH] [mirotalksfu] - improve workflows --- .github/workflows/{build.yml => ci.yml} | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) rename .github/workflows/{build.yml => ci.yml} (80%) diff --git a/.github/workflows/build.yml b/.github/workflows/ci.yml similarity index 80% rename from .github/workflows/build.yml rename to .github/workflows/ci.yml index ba51ae3a..f5a09ca4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: build +name: CI on: push: @@ -6,7 +6,7 @@ on: - main jobs: - publish: + test: runs-on: ubuntu-latest steps: - name: Checkout @@ -15,7 +15,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: '18.20.4' # LTS + node-version: '18.20.4' # LTS - name: Install dependencies run: npm install @@ -26,6 +26,13 @@ jobs: - name: Run unit tests run: npm test + build: + runs-on: ubuntu-latest + needs: test # This ensures the build job only runs if the test job succeeds + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set up QEMU uses: docker/setup-qemu-action@v2