From f6be9393c1bfad97e92846a62dd33bf937c42b1e Mon Sep 17 00:00:00 2001 From: Bastian Schmidt Date: Tue, 26 Mar 2024 10:34:38 +0100 Subject: [PATCH] Use theforeman github actions for JavaScript testing --- .github/workflows/js_tests.yml | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/.github/workflows/js_tests.yml b/.github/workflows/js_tests.yml index 4a74e948..a4c03e02 100644 --- a/.github/workflows/js_tests.yml +++ b/.github/workflows/js_tests.yml @@ -2,27 +2,21 @@ name: JavaScript Testing on: push: branches: - - main + - master pull_request: paths: - 'webpack/**' - 'package.json' - 'package-lock.json' - '.github/workflows/js_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-version: [12, 14] - steps: - - uses: actions/checkout@v2 - - name: Setup Node - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - name: Npm install - run: npm install - - name: Run plugin linter - run: npm run lint + test: + name: JavaScript + uses: theforeman/actions/.github/workflows/foreman_plugin_js.yml@v0 + with: + plugin: foreman_scc_manager