Skip to content

Commit

Permalink
#1 - ci fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilpiech97 committed Apr 4, 2024
1 parent 94ef50f commit 40bcb76
Showing 1 changed file with 11 additions and 18 deletions.
29 changes: 11 additions & 18 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,17 @@ jobs:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected] # https://github.com/actions/checkout
strategy:
matrix:
php: ["8.1", "8.2"]

- name: Cache dependencies
uses: actions/[email protected] # https://github.com/actions/cache
with:
path: vendor
key: ${{ runner.os }}-composer-dependencies-${{ hashFiles('composer.lock') }}
restore-keys: ${{ runner.os }}-composer-dependencies
steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@2.30.0 # https://github.com/shivammathur/setup-php
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: dom, curl, libxml, mbstring, zip, pcntl, intl, git
php-version: ${{ matrix.php }}
coverage: none

- name: Cache composer dependencies
Expand All @@ -45,14 +41,11 @@ jobs:
- name: Validate composer.json
run: composer validate

- name: Install Composer dependencies
working-directory: src
run: composer install --prefer-dist --no-interaction
- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run linter
working-directory: src
- name: Run code style checker
run: composer cs

- name: Run test
working-directory: src
- name: Run tests
run: composer test

0 comments on commit 40bcb76

Please sign in to comment.