Use GH Action instead of drone
Some checks failed
CI Pipeline / install (push) Failing after 17s
CI Pipeline / phpstan (push) Has been skipped
CI Pipeline / rector (push) Has been skipped
CI Pipeline / pest (push) Has been skipped
CI Pipeline / style-check (push) Has been skipped

This commit is contained in:
Tristan 2024-12-01 11:35:01 +01:00
parent 0c9fc4f017
commit 06c645f064
Signed by: trizz
SSH Key Fingerprint: SHA256:Xsd2dTN+ZC3OZWfvuKIDMQ/1lWicuINSEPgRQw/CJT8
2 changed files with 69 additions and 37 deletions

View File

@ -1,37 +0,0 @@
kind: pipeline
type: docker
name: default
steps:
- name: install
image: composer
commands:
- composer install
- name: phpstan
image: php:8.4
depends_on:
- install
commands:
- vendor/bin/phpstan analyse
- name: rector
image: php:8.4
depends_on:
- install
commands:
- vendor/bin/rector process --dry-run
- name: pest
image: php:8.4
depends_on:
- install
commands:
- vendor/bin/pest
- name: style check
image: php:8.4
depends_on:
- install
commands:
- vendor/bin/php-cs-fixer fix

69
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,69 @@
name: CI Pipeline
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
install:
runs-on: ubuntu-latest
container:
image: composer:latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install Dependencies
run: composer install
phpstan:
runs-on: ubuntu-latest
needs: install
container:
image: php:8.4
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: PHPStan Analysis
run: vendor/bin/phpstan analyse
rector:
runs-on: ubuntu-latest
needs: install
container:
image: php:8.4
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Rector Dry Run
run: vendor/bin/rector process --dry-run
pest:
runs-on: ubuntu-latest
needs: install
container:
image: php:8.4
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Run Pest Tests
run: vendor/bin/pest
style-check:
runs-on: ubuntu-latest
needs: install
container:
image: php:8.4
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: PHP CS Fixer
run: vendor/bin/php-cs-fixer fix