From 3798be63ecf56c6408398ea0379623ab4e3bc4d5 Mon Sep 17 00:00:00 2001 From: dosas Date: Wed, 15 May 2024 09:20:35 +0200 Subject: [PATCH] Use shared foreman actions js workflow --- .github/workflows/javascript_tests.yml | 38 +++++++++++--------------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/.github/workflows/javascript_tests.yml b/.github/workflows/javascript_tests.yml index d377c3f6..2e24b4d6 100644 --- a/.github/workflows/javascript_tests.yml +++ b/.github/workflows/javascript_tests.yml @@ -1,29 +1,23 @@ --- -name: React and Javascript tests -on: - pull_request: +name: JavaScript Testing +on: # yamllint disable-line rule:truthy push: branches: - master + pull_request: + paths: + - 'webpack/**' + - 'package.json' + - '.github/workflows/javascript_tests.yml' + +concurrency: + group: ${{ github.ref_name }}-${{ github.workflow }} + cancel-in-progress: true 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: Linting - run: | - npm run lint - npm run stylelint - - name: Testing - run: npm run test + test: + name: JavaScript + uses: theforeman/actions/.github/workflows/foreman_plugin_js.yml@v0 + with: + plugin: foreman_acd ...