mirror of
https://github.com/koel/koel
synced 2024-11-24 13:13:05 +00:00
31 lines
907 B
YAML
31 lines
907 B
YAML
name: main
|
|
on: [ push ]
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
php-version: [ 7.4, 8.0 ]
|
|
fail-fast: false
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Set up PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php-version }}
|
|
tools: composer:v2
|
|
coverage: xdebug
|
|
- 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
|
|
- name: Run tests
|
|
run: composer coverage
|
|
- name: Upload coverage
|
|
uses: codecov/codecov-action@v1
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|