mirror of
https://codeberg.org/icewind/SearchDAV.git
synced 2026-08-02 12:14:54 +02:00
setup forgejo ci
This commit is contained in:
parent
34cf715ecd
commit
07b1776db6
3 changed files with 19 additions and 19 deletions
21
.forgejo/workflows/ci.yml
Normal file
21
.forgejo/workflows/ci.yml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
name: CI
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build-test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
php-versions: ['8.0', '8.4']
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up php${{ matrix.php-versions }}
|
||||
uses: https://github.com/shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php-versions }}
|
||||
- name: Install dependencies
|
||||
run: composer i
|
||||
- name: PHPUnit
|
||||
run: ./vendor/phpunit/phpunit/phpunit -c tests/phpunit.xml
|
||||
41
.forgejo/workflows/lint.yml
Normal file
41
.forgejo/workflows/lint.yml
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
name: Php Lint
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
php-linters:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
php-versions: ['8.2', '8.3', '8.4', '8.5']
|
||||
name: php${{ matrix.php-versions }} lint
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up php${{ matrix.php-versons }}
|
||||
uses: https://github.com/shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php-versions }}
|
||||
coverage: none
|
||||
extensions: inotify
|
||||
- name: Install dependencies
|
||||
run: composer i
|
||||
- name: Lint
|
||||
run: composer run lint
|
||||
|
||||
php-cs-fixer:
|
||||
name: php-cs check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up php${{ matrix.php-versions }}
|
||||
uses: https://github.com/shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 8.2
|
||||
tools: composer:v1
|
||||
coverage: none
|
||||
extensions: inotify
|
||||
- name: Install dependencies
|
||||
run: composer i
|
||||
- name: Run coding standards check
|
||||
run: composer run cs:check
|
||||
36
.forgejo/workflows/static-analysis.yml
Normal file
36
.forgejo/workflows/static-analysis.yml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
name: Php Static analysis
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
psalm:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up php
|
||||
uses: https://github.com/shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 8.2
|
||||
tools: composer:v1
|
||||
coverage: none
|
||||
extensions: redis
|
||||
- name: Install dependencies
|
||||
run: composer i
|
||||
- name: Run coding standards check
|
||||
run: composer run psalm
|
||||
phpstan:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up php
|
||||
uses: https://github.com/shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 8.2
|
||||
tools: composer:v1
|
||||
coverage: none
|
||||
extensions: redis
|
||||
- name: Install dependencies
|
||||
run: composer i
|
||||
- name: Run coding standards check
|
||||
run: composer run psalm
|
||||
Loading…
Add table
Add a link
Reference in a new issue