Skip to content

GH Actions: Bump actions/setup-node from 3 to 4 #113

GH Actions: Bump actions/setup-node from 3 to 4

GH Actions: Bump actions/setup-node from 3 to 4 #113

Workflow file for this run

name: CheckJS
on:
# Run on relevant pushes to select branches and on all relevant pull requests.
push:
branches:
- main
- develop
- 'release/[0-9]+.[0-9]+*'
- 'hotfix/[0-9]+.[0-9]+*'
paths:
- '**.js' # Includes Gruntfile.js.
- '.eslintignore'
- '.eslintrc'
- 'package.json'
- 'yarn.lock'
- '.github/workflows/js.yml'
- 'grunt/**'
pull_request:
paths:
- '**.js' # Includes Gruntfile.js.
- '.eslintignore'
- '.eslintrc'
- 'package.json'
- 'yarn.lock'
- '.github/workflows/js.yml'
- 'grunt/**'
# Allow manually triggering the workflow.
workflow_dispatch:
# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
grunt:
runs-on: ubuntu-latest
name: "CheckJS"
steps:
- name: Checkout code
uses: actions/checkout@v3
# The ubuntu images come with Node, npm and yarn pre-installed.
# https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md
# This action also handles the caching of the Yarn dependencies.
# https://github.com/actions/setup-node
- name: Set up node and enable caching of dependencies
uses: actions/setup-node@v4
with:
node-version: '14'
cache: 'yarn'
- name: Yarn install
run: yarn install
- name: Show debug info
run: |
npm --version
node --version
yarn --version
grunt --version
- name: Run Grunt tasks
run: grunt check