From 997be74d8e293b5145cd7d74e1e7db8fc4bf5000 Mon Sep 17 00:00:00 2001 From: lev1nn Date: Mon, 9 Dec 2024 11:08:48 +0100 Subject: [PATCH] feat: Add tests to pipeline --- .github/workflows/deploy.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7c1b85a..a9c7d30 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,7 +15,22 @@ permissions: contents: read jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install node + uses: actions/setup-node@v4 + with: + node-version: 22 # lts + cache: 'npm' + cache-dependency-path: ./package-lock.json + - name: Test + working-directory: . + run: npm ci && npm run test deploy: + needs: test name: Deploy runs-on: ubuntu-latest environment: aws