-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
07fac61
commit a6e6ff0
Showing
1 changed file
with
18 additions
and
9 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -26,38 +26,47 @@ jobs: | |
- "8.2" | ||
- "8.3" | ||
include: | ||
- os: ubuntu-latest | ||
- | ||
os: ubuntu-latest | ||
php-version: "8.2" | ||
check-cs: true | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Setup PHP | ||
- | ||
name: Setup PHP | ||
uses: shivammathur/[email protected] | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
tools: ${{ matrix.check-cs && 'php-cs-fixer:v3,' || '' }} composer:v2 | ||
coverage: none | ||
- name: Checkout | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Cache PHP-CS-Fixer | ||
- | ||
name: Cache PHP-CS-Fixer | ||
if: matrix.check-cs | ||
uses: actions/cache@v3 | ||
with: | ||
path: .php-cs-fixer.cache | ||
key: ${{ runner.os }}-${{ matrix.php-version }}-phpcsfixer | ||
- name: Install Composer dependencies | ||
- | ||
name: Install Composer dependencies | ||
run: composer update --optimize-autoloader --no-progress --ansi --no-interaction | ||
- name: Build | ||
- | ||
name: Build | ||
run: ./bin/unipoints build | ||
- name: Check built assets | ||
- | ||
name: Check built assets | ||
if: startsWith(matrix.os, 'windows') == false | ||
run: | | ||
if ! git diff --exit-code --name-status; then | ||
echo "::error file=$(git diff --name-status | head -n 1)::PLEASE RUN bin/unipoints build" | ||
exit 1 | ||
fi | ||
- name: Check PHP coding style | ||
- | ||
name: Check PHP coding style | ||
if: matrix.check-cs | ||
run: composer run-script phpcs -- --ansi --no-interaction --dry-run --diff | ||
- name: PHPUnit | ||
- | ||
name: PHPUnit | ||
run: composer run-script test -- --colors=always |