diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7ffc70f..0c44131 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,14 +22,25 @@ jobs: - name: Run unit tests run: npm run test:unit + + integration-test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' - name: Run integration tests run: npm run test:integration - + merge-check: - needs: test + needs: [test, integration-test] runs-on: ubuntu-latest steps: - name: Check test status - if: ${{ needs.test.result != 'success' }} + if: ${{ needs.test.result != 'success' || needs.integration-test.result != 'success' }} run: exit 1 # Exit with a non-zero status code if tests fail