forked from theforeman/foreman_rh_cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 888 Bytes
/
js_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
steps:
- name: Checkout plugin
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 12
- name: Copy configuration files
run: |
cp config/package-lock.json.plugin package-lock.json
- name: Install plugin npm dependencies
run: npm ci
- name: Run plugin linter
run: |
npm run lint
npm run lint:spelling
- name: Run plugin tests
run: npm run test
- name: Publish Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}