From f309527c2691487f5955f0cbd70971f504126cc0 Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Thu, 10 Oct 2024 20:30:12 +0200 Subject: [PATCH] ci: Run unit tests --- .../openvidu-components-angular-E2E.yml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/openvidu-components-angular-E2E.yml b/.github/workflows/openvidu-components-angular-E2E.yml index c3ac5e781c..231b94ef55 100644 --- a/.github/workflows/openvidu-components-angular-E2E.yml +++ b/.github/workflows/openvidu-components-angular-E2E.yml @@ -102,6 +102,27 @@ jobs: LAUNCH_MODE: CI run: npm run e2e:nested-events --prefix openvidu-components-angular + unit_tests: + name: Unit Tests + runs-on: ubuntu-latest + needs: test_setup + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + with: + ref: ${{ inputs.commit_sha || github.sha }} + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + - name: Install Dependencies + run: | + cd openvidu-components-angular + npm install + - name: Run Unit Tests + run: npm run lib:test --prefix openvidu-components-angular + + nested_components_e2e_directives: needs: test_setup name: Nested directives