From 2de7cac158100d25e4d0f42094f8360ced8e8708 Mon Sep 17 00:00:00 2001 From: Markus Bucher Date: Wed, 20 Dec 2023 18:48:51 +0100 Subject: [PATCH] fixup! fixup! WIP: test-result reporting --- .github/workflows/javascript_tests.yml | 25 +++++++++++++++++++++++++ .github/workflows/unit_tests.yml | 4 ---- 2 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/javascript_tests.yml diff --git a/.github/workflows/javascript_tests.yml b/.github/workflows/javascript_tests.yml new file mode 100644 index 00000000..3e420bfb --- /dev/null +++ b/.github/workflows/javascript_tests.yml @@ -0,0 +1,25 @@ +--- +name: React and Javascript tests +on: + pull_request: + push: + branches: + - master + +jobs: + test_js: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node: [14] + steps: + - uses: actions/checkout@v2 + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node }} + - run: npm install + - name: Run npm tests + run: npm run test-github-actions +... diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 300b020b..3000b9cf 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -71,10 +71,6 @@ jobs: - name: Run plugin tests run: | bundle exec rake test:foreman_acd - - name: Run npm tests - working-directory: ./foreman_acd - run: | - npm run test-github-actions - name: Run access permission test run: | bundle exec rake test TEST="test/unit/foreman/access_permissions_test.rb"