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"