diff --git a/.github/workflows/test-on-pull-request.yml b/.github/workflows/test-on-pull-request.yml new file mode 100644 index 00000000..bdf6a411 --- /dev/null +++ b/.github/workflows/test-on-pull-request.yml @@ -0,0 +1,25 @@ +name: Run Tests on Pull Request + +on: + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: "18" + + - name: Install dependencies + run: npm install + + - name: Run tests + run: npm run test