Skip to content

Commit

Permalink
update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
absszero committed Jan 5, 2024
1 parent c8e4480 commit 07e3551
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 44 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
php: ['8.3', '8.2', '8.1', '8.0', '7.4', '7.3', '7.2']
Expand Down Expand Up @@ -38,6 +38,3 @@ jobs:
run: composer test
env:
XDEBUG_MODE: coverage

- name: Run static analysis
run: composer static-analysis
30 changes: 30 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: build

on:
push:
branches:
- master
- main

jobs:
test:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: zip, curl, xdebug
coverage: xdebug

- name: Update composer
run: composer selfupdate

- name: Install dependencies
run: composer install --prefer-dist --no-interaction

- name: Run static analysis
run: composer static-analysis
39 changes: 0 additions & 39 deletions .github/workflows/pull_request.yml

This file was deleted.

2 changes: 1 addition & 1 deletion src/Layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function collectFilesVars(array $data): array
/**
* append methods to file
*
* @param array<string, string|mixed> $data
* @param array<string, string|mixed> $files
*
* @return array<string, string|mixed>
*/
Expand Down
2 changes: 2 additions & 0 deletions src/PheadCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,7 @@ protected function genSample(InputInterface $input, OutputInterface $output): in
if ($result) {
return Command::SUCCESS;
}

return Command::FAILURE;
}
}

0 comments on commit 07e3551

Please sign in to comment.