CI: update GitHub Actions workflow files #105
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: "Lint code" | |
on: [pull_request, push] | |
jobs: | |
phpcs: | |
name: Run phpcs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
tools: composer:v2 | |
- run: composer install | |
- run: composer test | |
eslint: | |
name: Run eslint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: npm install --location=global eslint eslint-config-wikimedia eslint-plugin-json | |
- run: eslint js --ignore-pattern 'lib/' |