-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed broken test, introduce pipeline github
- Loading branch information
Koen Eelen
committed
Apr 11, 2024
1 parent
f9a2561
commit 550fc51
Showing
13 changed files
with
980 additions
and
578 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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,10 @@ | ||
# CODEOWNERS are automatically assigned as possible reviewers to new PRs. | ||
|
||
# Global owners (also need to be duplicated in later rules) | ||
* @LucWollants @JonasVHG @simon-debruijn @grubolsch | ||
|
||
# Jenkins / deployment owners | ||
Gemfile* @willaerk @paulherbosch | ||
Jenkinsfile* @willaerk @paulherbosch | ||
Rakefile @willaerk @paulherbosch | ||
lib/ @willaerk @paulherbosch |
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,75 @@ | ||
name: CI | ||
|
||
on: push | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-versions: ['7.4', '8.0'] | ||
name: PHP ${{ matrix.php-versions }} | ||
steps: | ||
- name: 📤 Checkout project | ||
uses: actions/checkout@v2 | ||
|
||
- name: 🐘 Install PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
ini-values: xdebug.mode=coverage | ||
tools: composer | ||
|
||
- name: ✌️ Check PHP Version | ||
run: php -v | ||
|
||
- name: 🛂 Validate composer.json and composer.lock | ||
run: composer validate | ||
|
||
- name: 📩 Cache Composer packages | ||
id: composer-cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: vendor | ||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-php- | ||
- name: 📦 Install dependencies | ||
if: steps.composer-cache.outputs.cache-hit != 'true' | ||
run: composer install --no-progress --no-suggest | ||
|
||
- name: ✅ Run tests | ||
run: composer test | ||
|
||
phpstan: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-versions: [ '7.4', '8.0' ] | ||
name: Static analysis (PHP ${{ matrix.php-versions }}) | ||
steps: | ||
- name: 📤 Checkout project | ||
uses: actions/checkout@v2 | ||
|
||
- name: 🐘 Install PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
tools: composer | ||
|
||
- name: 📩 Cache Composer packages | ||
id: composer-cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: vendor | ||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-php- | ||
- name: 📦 Install dependencies | ||
if: steps.composer-cache.outputs.cache-hit != 'true' | ||
run: composer install --no-progress --no-suggest | ||
|
||
- name: 🔍 Run static analysis | ||
run: composer phpstan |
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
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
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
Oops, something went wrong.