don't use tilde to import from node_modules, sass-loader will do #493
Workflow file for this run
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
name: JavaScript Testing | |
on: | |
pull_request: | |
paths: | |
- 'webpack/**' | |
- 'package.json' | |
- '.github/workflows/js_tests.yml' | |
jobs: | |
test_js: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [12, 14] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/checkout@v2 | |
with: | |
repository: theforeman/foreman | |
ref: develop | |
path: foreman | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Npm install | |
run: npm install | |
- name: Npm install for core | |
run: npm install | |
working-directory: ./foreman | |
- name: Run plugin linter | |
run: npm run lint | |
- name: Run plugin tests | |
run: npm run test |