From 91b7714df93f49ec4c3b1d6df36de96de21ae08b Mon Sep 17 00:00:00 2001 From: Adam Gall Date: Sat, 10 Feb 2024 15:18:14 -0500 Subject: [PATCH] Run unit tests in PRs --- .github/workflows/unit-tests.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/unit-tests.yaml diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml new file mode 100644 index 0000000000..72e77c9aa7 --- /dev/null +++ b/.github/workflows/unit-tests.yaml @@ -0,0 +1,27 @@ +name: Unit Tests +on: + push: + branches: + - develop + pull_request: + +jobs: + vitest: + runs-on: ubuntu-latest + environment: dev + steps: + # Checkout the repository + - name: Checkout + uses: actions/checkout@v3 + + # Set up the required Node.js version + - name: Set up node + uses: actions/setup-node@v3 + with: + node-version-file: '.nvmrc' + + - name: Install dependencies + run: npm ci + + - name: Run tests + run: npm run test