fix rendering of the react layout #40
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: | |
push: | |
branches: | |
- master | |
pull_request: | |
paths: | |
- 'webpack/**' | |
- 'package.json' | |
- '.github/workflows/js_tests.yml' | |
env: | |
RAILS_ENV: test | |
jobs: | |
test_js: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [12] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: restore node_modules | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-modules-${{ matrix.node-version }}-${{ hashFiles('package.json') }} | |
- name: Npm install | |
run: npm install | |
- name: Run plugin linter | |
run: npm run lint | |
- name: Run plugin tests | |
run: npm run test |