Skip to content

Bump actions/setup-node from 3 to 4 #2

Bump actions/setup-node from 3 to 4

Bump actions/setup-node from 3 to 4 #2

Workflow file for this run

name: JavaScript
on:
pull_request:
paths:
- 'webpack/**'
- 'package.json'
- '.github/workflows/js_tests.yml'
- '.eslintrc'
- '.eslintignore'
permissions:
contents: read
jobs:
test:
permissions:
checks: write # for coverallsapp/github-action to create new checks
contents: read # for actions/checkout to fetch code
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
node-version:
- 12
- 14
steps:
- name: Checkout Foreman
uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Generate npm dependencies package-lock
run: npm install --package-lock-only --no-audit
- name: Install npm dependencies
run: npm ci --no-audit
- name: Run linter
run: npm run lint
- name: Run Spellcheck (only warnings)
run: npm run lint:spelling
- name: Run tests
run: npm run test
- name: Publish Coveralls (node v14)
if: ${{ matrix.node-version == 14 }}
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}