From 45a503190457b186ea43c5606139a47cc9d215ea Mon Sep 17 00:00:00 2001 From: Nadja Heitmann Date: Tue, 13 May 2025 14:14:22 +0200 Subject: [PATCH] Use theforeman github actions for JS tests --- .github/workflows/js_tests.yml | 45 +++++++++++----------------------- 1 file changed, 14 insertions(+), 31 deletions(-) diff --git a/.github/workflows/js_tests.yml b/.github/workflows/js_tests.yml index efa84257..c71f1735 100644 --- a/.github/workflows/js_tests.yml +++ b/.github/workflows/js_tests.yml @@ -1,36 +1,19 @@ name: JavaScript Testing + on: + pull_request: push: branches: - - master - pull_request: - paths: - - 'webpack/**' - - 'package.json' - - '.github/workflows/js_tests.yml' -env: - RAILS_ENV: test + - 'master' + - '*-stable' + +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] - steps: - - uses: actions/checkout@v2 - - name: Setup Node - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - name: restore node_modules - uses: actions/cache@v2 - with: - path: node_modules - key: ${{ runner.os }}-modules-${{ matrix.node-version }}-${{ hashFiles('package.json') }} - - name: Npm install - run: npm install - - name: Run plugin linter - run: npm run lint - - name: Run plugin tests - run: npm run test + test: + name: JavaScript + uses: theforeman/actions/.github/workflows/foreman_plugin_js.yml@v0 + with: + plugin: foreman_puppet