From be9616d7a677e133b2c8b72f26a12f96b1e48b55 Mon Sep 17 00:00:00 2001 From: Hugo Montero Date: Fri, 3 May 2024 07:53:44 -0600 Subject: [PATCH] add e2e tests to tests workflow --- .github/workflows/tests.yaml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index fc95a53b6..e57bd9210 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -3,7 +3,7 @@ name: Run Tests on: [push] jobs: - test: + unit-test: runs-on: ${{ matrix.os }} strategy: matrix: @@ -19,6 +19,24 @@ jobs: run: npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} - name: Install dependencies run: npm install - - name: Run Tests + - name: Run unit tests run: npm run test:ci + e2e-test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + node-version: [16.x] + os: [ubuntu-latest, macOS-latest] + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - name: Configure NPM Token + run: npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} + - name: Install dependencies + run: npm install + - name: Run unit tests + run: npm run test:e2e:ci