-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use Github Actions instead of CircleCI
- Loading branch information
1 parent
9d4d529
commit b6809da
Showing
2 changed files
with
63 additions
and
138 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Code quality | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
composer: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
version: [ 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3 ] | ||
|
||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cache composer dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
key: composer-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}-${{ matrix.version }} | ||
restore-keys: composer- | ||
path: vendor | ||
|
||
- name: Install composer dependencies | ||
uses: php-actions/composer@v6 | ||
with: | ||
interaction: no | ||
dev: yes | ||
php_version: ${{ matrix.version }} | ||
version: 2 | ||
args: --optimize-autoloader --no-scripts --ignore-platform-reqs | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
needs: composer | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cache composer dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
key: composer-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}-${{ matrix.version }} | ||
restore-keys: composer- | ||
path: vendor | ||
|
||
- name: Install PHP with extension | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.version }} | ||
|
||
- name: PHP Code Sniffer | ||
run: make phpcs |