Skip to content

Fixes #1 - Add github actions #4

Fixes #1 - Add github actions

Fixes #1 - Add github actions #4

Workflow file for this run

name: JavaScript Testing
on:
push:
branches:
- main
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