-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use shared foreman actions js workflow
- Loading branch information
Showing
1 changed file
with
16 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
... |