Skip to content

Fixes #37250 - Ensure js tests are executed on default branch #498

Fixes #37250 - Ensure js tests are executed on default branch

Fixes #37250 - Ensure js tests are executed on default branch #498

Workflow file for this run

name: JavaScript Testing
on:
pull_request:
paths:
- 'webpack/**'
- 'package.json'
- '.github/workflows/js_tests.yml'
push:
branches:
- "master"
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