mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
chore: prepare the workflow
This commit is contained in:
parent
50a94cb4b9
commit
3a3eb3bc68
1 changed files with 4 additions and 13 deletions
|
@ -1,7 +1,5 @@
|
|||
name: CI
|
||||
|
||||
on: [push]
|
||||
|
||||
name: main
|
||||
on: [ push ]
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -17,20 +15,13 @@ jobs:
|
|||
php-version: ${{ matrix.php-version }}
|
||||
tools: composer:v2
|
||||
coverage: xdebug
|
||||
- name: Copy .env file
|
||||
run: cp .env.ci .env
|
||||
- name: Install dependencies
|
||||
run: composer install --prefer-dist --no-interaction --no-scripts --no-progress
|
||||
- name: Generate app key
|
||||
run: php artisan key:generate --quiet
|
||||
|
||||
- name: Run code style checker
|
||||
run: composer cs
|
||||
- name: Run static analysis
|
||||
run: composer analyze -- --no-progress
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Composer
|
||||
run: composer install --no-interaction
|
||||
- name: PHPUnit
|
||||
run: composer coverage
|
||||
- name: Run tests
|
||||
run: composer coverage
|
Loading…
Reference in a new issue