Skip to content

Commit

Permalink
Use theforeman github actions for JavaScript testing
Browse files Browse the repository at this point in the history
  • Loading branch information
bastian-src committed Mar 26, 2024
1 parent 9a9ee52 commit f6be939
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/js_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f6be939

Please sign in to comment.