From a7b79a0f18a6bd626cfdda3721032673fea1da1a Mon Sep 17 00:00:00 2001 From: Claudio Zizza Date: Thu, 24 Aug 2023 22:46:06 +0200 Subject: [PATCH] Move JS tests in its own GitHub workflow --- .github/workflows/continuous-integration.yml | 3 --- .github/workflows/js-tests.yml | 25 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/js-tests.yml diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index e11f59af..04ddca54 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -59,8 +59,5 @@ jobs: - name: "Run PHP tests with coverage" run: "./vendor/bin/phpunit --coverage-clover clover.xml" - - name: "Run JS tests" - run: "yarn jest" - - name: "Deliver code coverage" run: "bash <(curl -s https://codecov.io/bash)" diff --git a/.github/workflows/js-tests.yml b/.github/workflows/js-tests.yml new file mode 100644 index 00000000..71c7e524 --- /dev/null +++ b/.github/workflows/js-tests.yml @@ -0,0 +1,25 @@ +name: "JS Tests" + +on: ["push", "pull_request"] + +jobs: + js-tests: + + runs-on: "ubuntu-latest" + + steps: + - uses: "actions/checkout@v2" + + - name: "Installation of node" + uses: "actions/setup-node@v3" + with: + node-version: '20.5.1' + + - name: "yarn install" + run: "yarn install" + + - name: "Run webpack" + run: "yarn dev" + + - name: "Run JS tests" + run: "yarn jest"