Merge branch 'trunk' of github.com:jdevalk/comment-hacks into trunk #102
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: CheckJS | |
on: | |
# Run on pushes to select branches and on all pull requests. | |
push: | |
branches: | |
- main | |
- trunk | |
- 'release/**' | |
- 'hotfix/[0-9]+.[0-9]+*' | |
pull_request: | |
# 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@v4 | |
# 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 JS tasks | |
run: grunt check:js | |
- name: Run Grunt I18n tasks | |
run: grunt check:i18n |