From 604c80c837b2ee4432ad3d09bb8ece83ed87a25c Mon Sep 17 00:00:00 2001 From: Glenn <33450392+glenn2223@users.noreply.github.com> Date: Thu, 12 Sep 2024 13:18:47 +0100 Subject: [PATCH] Create PR Test Action Created a new GitHub action that tests every PR --- .github/workflows/test-on-pr.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/test-on-pr.yml diff --git a/.github/workflows/test-on-pr.yml b/.github/workflows/test-on-pr.yml new file mode 100644 index 0000000..161c848 --- /dev/null +++ b/.github/workflows/test-on-pr.yml @@ -0,0 +1,16 @@ +name: Run Tests on PR +on: + pull_request: + branches: + - '**' + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '20.x' + - run: npm ci + - run: npm test