Skip to content

Commit

Permalink
[TASK] updates ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilBMP committed Sep 17, 2024
1 parent 9491988 commit 86391c1
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,39 @@ name: CI
on:
push:
pull_request:
schedule:
- cron: '5 5 * * *'

jobs:
testsuite:
name: all tests
runs-on: ubuntu-latest
steps:
- name: "Checkout"
- name: Checkout
uses: actions/checkout@v4
- name: "Install PHP"

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
coverage: none
tools: composer:v2
- name: "Composer Install"
run: "composer install"
- name: "Run Static Code Analysis"
run: "composer ci:static"

- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install dependencies
run: composer install

- name: Run static code analysis
run: composer ci:static
strategy:
fail-fast: false
matrix:
php: [ '7.4', '8.0', '8.1', '8.2' ]
php: [ '8.2', '8.3' ]

0 comments on commit 86391c1

Please sign in to comment.