Skip to content

MMB-282: Allow the admin to specify file to use as certificate #182

MMB-282: Allow the admin to specify file to use as certificate

MMB-282: Allow the admin to specify file to use as certificate #182

Workflow file for this run

name: Linters
on: pull_request
env:
GITHUB_BASE_REF: ${{ github.base_ref }}
jobs:
run-linters:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run npm install
shell: bash -l {0}
run: |
nvm install
nvm use
npm ci
- name: Fetch target branch
run: git fetch -n origin ${GITHUB_BASE_REF}
- name: Run phpcs linter
run: git diff --diff-filter=d origin/${GITHUB_BASE_REF} --name-only -- '*.php' | xargs -r ./bin/phpcs.phar --standard=phpcs-ruleset.xml
- name: Run eslint linter
if: ${{ always() }}
run: git diff --diff-filter=d origin/${GITHUB_BASE_REF} --name-only -- '*.js' :^js/vendor | xargs -r npx eslint --max-warnings=0 -c .eslintrc.json