Use more native types where possible (#20) #37
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 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
# Run on all PRs | |
env: | |
CI: "true" | |
jobs: | |
phpcs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v2 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.json') }} | |
restore-keys: | | |
${{ runner.os }}-php- | |
- name: Install dependencies | |
run: composer update | |
--no-ansi | |
--no-interaction | |
--no-progress | |
--no-suggest | |
--prefer-dist | |
- name: PHPCS | |
run: composer phpcs | |
# TODO: run only if .github/codecov.yml changed | |
codecov-config: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Send to Codecov to validate | |
run: curl -X POST --data-binary @.github/codecov.yml https://codecov.io/validate |