Use GH Action instead of drone
This commit is contained in:
parent
0c9fc4f017
commit
06c645f064
37
.drone.yml
37
.drone.yml
@ -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
69
.github/workflows/ci.yml
vendored
Normal 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
|
Loading…
x
Reference in New Issue
Block a user