update workflows

This commit is contained in:
Saeed Vaziry 2023-09-02 17:30:31 +02:00
parent e1eb42059f
commit 88f26ce6a3
2 changed files with 31 additions and 38 deletions

View File

@ -1,4 +1,4 @@
name: style-check
name: checks
on:
push:
@ -52,3 +52,33 @@ jobs:
DB_DATABASE: test_db
DB_USERNAME: user
DB_PASSWORD: password
code-style:
runs-on: ubuntu-20.04
strategy:
fail-fast: true
matrix:
php: [ 8.1 ]
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run pint
run: ./vendor/bin/pint --test

View File

@ -1,37 +0,0 @@
name: tests
on:
push:
pull_request:
jobs:
tests:
runs-on: ubuntu-20.04
strategy:
fail-fast: true
matrix:
php: [ 8.1 ]
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run pint
run: ./vendor/bin/pint --test