Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
Fix #141 use .nvmrc in GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
admturner committed Mar 22, 2024
1 parent 6365bf4 commit 1d0eae5
Showing 1 changed file with 26 additions and 25 deletions.
51 changes: 26 additions & 25 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,53 +16,54 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log debug information
run: |
npm --version
node --version
git --version
- name: Install NodeJS v14
uses: actions/setup-node@v2
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 14
- name: Log debug information
run: |
npm --version
node --version
- name: Install npm dependencies
run: npm ci
- name: Run eslint
node-version-file: '.nvmrc'
check-latest: true
cache: npm

- name: Npm install
run: npm install

- name: Lint JavaScript
run: npm run lint:script
- name: Run stylelint

- name: Lint Styles
run: npm run lint:style
- name: Run npmPkgJsonLint

- name: Lint package.json
run: npm run lint:pkg
- name: Run markdownlint

- name: Lint Docs
run: npm run lint:docs

phpcs:
name: PHP Coding Standards
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up PHP version
uses: actions/checkout@v4

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
coverage: none
tools: composer, cs2pr
- name: Log debug information
run: |
php --version
composer --version

- name: Install Composer dependencies
uses: ramsey/composer-install@v1
with:
composer-options: '--no-progress --no-ansi --no-interaction'

- name: Make Composer packages available globally
run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH

- name: Log PHPCS debug information
run: phpcs -i

- name: Run PHPCS
run: phpcs -q -n --report=checkstyle . | cs2pr

0 comments on commit 1d0eae5

Please # to comment.