From 5e67b0bd512a3dc44511d894018827a3d8d2c215 Mon Sep 17 00:00:00 2001 From: Gabriele Granello Date: Thu, 8 Aug 2024 17:23:10 +0200 Subject: [PATCH 1/3] test on PR --- .github/workflows/test-on-pull-request.yml | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/test-on-pull-request.yml diff --git a/.github/workflows/test-on-pull-request.yml b/.github/workflows/test-on-pull-request.yml new file mode 100644 index 0000000..0812f61 --- /dev/null +++ b/.github/workflows/test-on-pull-request.yml @@ -0,0 +1,26 @@ +name: Run Tests on Pull Request + +on: + pull_request: + branches: + - main + - gg/set-workflow + +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 From f82c6de82f911822536d84613bd91d3d7ae987aa Mon Sep 17 00:00:00 2001 From: Gabriele Granello <52770098+gabrielegranello@users.noreply.github.com> Date: Thu, 8 Aug 2024 17:26:46 +0200 Subject: [PATCH 2/3] added comment (#47) Co-authored-by: Gabriele Granello --- .github/workflows/test-on-pull-request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-on-pull-request.yml b/.github/workflows/test-on-pull-request.yml index 0812f61..2fbe637 100644 --- a/.github/workflows/test-on-pull-request.yml +++ b/.github/workflows/test-on-pull-request.yml @@ -4,7 +4,7 @@ on: pull_request: branches: - main - - gg/set-workflow + - gg/set-workflow # for testing jobs: test: From 13d5d8f6183ce09914872138a7bfd5747ed8214b Mon Sep 17 00:00:00 2001 From: Gabriele Granello Date: Thu, 8 Aug 2024 17:27:49 +0200 Subject: [PATCH 3/3] clean the testing branch --- .github/workflows/test-on-pull-request.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test-on-pull-request.yml b/.github/workflows/test-on-pull-request.yml index 2fbe637..bdf6a41 100644 --- a/.github/workflows/test-on-pull-request.yml +++ b/.github/workflows/test-on-pull-request.yml @@ -4,7 +4,6 @@ on: pull_request: branches: - main - - gg/set-workflow # for testing jobs: test: