Compare commits
12 commits
security/v
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 22f0e49b4b | |||
| 2dc7632ef5 | |||
|
|
739e84d84b | ||
|
|
69897aedab | ||
|
|
702717394a | ||
|
|
a4626e8f41 | ||
|
|
f57a3b21ba | ||
|
|
8f66284a52 | ||
|
|
a74e74c81b | ||
|
|
812886dc33 | ||
|
|
912927fdd0 | ||
| 63abc5f99a |
1 changed files with 57 additions and 0 deletions
57
.forgejo/workflows/ci.yml
Normal file
57
.forgejo/workflows/ci.yml
Normal file
|
|
@ -0,0 +1,57 @@
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: PHP ${{ matrix.php }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: lthn/build:php-${{ matrix.php }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: true
|
||||||
|
matrix:
|
||||||
|
php: ["8.3", "8.4"]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Clone sister packages
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
echo "Cloning php-framework into ../php-framework"
|
||||||
|
git clone --depth 1 \
|
||||||
|
"https://x-access-token:${GITHUB_TOKEN}@forge.lthn.ai/core/php-framework.git" \
|
||||||
|
../php-framework
|
||||||
|
ls -la ../php-framework/composer.json
|
||||||
|
|
||||||
|
- name: Configure path repositories
|
||||||
|
run: |
|
||||||
|
composer config repositories.core path ../php-framework --no-interaction
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: composer install --prefer-dist --no-interaction --no-progress
|
||||||
|
|
||||||
|
- name: Run Pint
|
||||||
|
run: |
|
||||||
|
if [ -f vendor/bin/pint ]; then
|
||||||
|
vendor/bin/pint --test
|
||||||
|
else
|
||||||
|
echo "Pint not installed, skipping"
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
|
if [ -f vendor/bin/pest ]; then
|
||||||
|
vendor/bin/pest --ci --coverage
|
||||||
|
elif [ -f vendor/bin/phpunit ]; then
|
||||||
|
vendor/bin/phpunit --coverage-text
|
||||||
|
else
|
||||||
|
echo "No test runner found, skipping"
|
||||||
|
fi
|
||||||
Loading…
Add table
Reference in a new issue