Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 26 additions & 23 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@
name: Integration Tests

on: [push, pull_request]
on:
pull_request:
branches: [main]
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.4"
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.4"

- name: Install dependencies
run: composer install
- name: Install dependencies
run: composer install

- name: Set up Docker Compose
uses: docker/setup-compose-action@v1
- name: Set up Docker Compose
uses: docker/setup-compose-action@v1

- name: Prepare data directory with correct permissions
run: |
mkdir -p ./tests/.litebase
chmod 777 ./tests/.litebase
- name: Prepare data directory with correct permissions
run: |
mkdir -p ./tests/.litebase
chmod 777 ./tests/.litebase

- name: Run integration tests
run: vendor/bin/pest tests/Integration
- name: Run integration tests
run: vendor/bin/pest tests/Integration

- name: Report results
if: always()
run: echo "Integration tests completed."
- name: Report results
if: always()
run: echo "Integration tests completed."
26 changes: 26 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: phpstan

on:
pull_request:
branches: [main]
workflow_dispatch:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.4"
tools: composer:v2

- name: Install Dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader

- name: Run PHPStan
run: composer run phpstan
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
},
"scripts": {
"generate_open_api": "openapi-generator-cli generate -c openapi_config.yaml",
"phpstan": "vendor/bin/phpstan analyse -c phpstan.neon --memory-limit=512M src tests",
"pint": "vendor/bin/pint --no-interaction",
"test": "vendor/bin/pest",
"test-coverage": "vendor/bin/pest --coverage-html coverage"
Expand Down
2 changes: 0 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
parameters:
level: 9
excludePaths:
- src/Generated/*
paths:
- src
- tests
Expand Down