Skip to content

Commit

Permalink
Remove unnecessary steps
Browse files Browse the repository at this point in the history
  • Loading branch information
asispts committed Nov 3, 2023
1 parent 3938baf commit 3cf44d9
Showing 1 changed file with 2 additions and 39 deletions.
41 changes: 2 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,43 +7,22 @@ on:

jobs:
lint:
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest]
php-versions: ["7.2"]
runs-on: ${{ matrix.operating-system }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
php-version: "7.2"
coverage: none

- name: Get Composer Cache Directory
id: composer-cache-dir
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache-dir.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.php-versions }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-${{ matrix.php-versions }}-composer-

- name: Install dependencies
run: composer install --no-progress

- name: Check coding style
run: vendor/bin/phpcs

- name: Show PHPStan version
run: vendor/bin/phpstan --version

- name: Run static analyser
run: vendor/bin/phpstan analyse

Expand All @@ -65,26 +44,10 @@ jobs:
php-version: ${{ matrix.php-versions }}
coverage: none

- name: Get Composer Cache Directory
id: composer-cache-dir
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache-dir.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.php-versions }}-${{ matrix.mode }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-${{ matrix.php-versions }}-${{ matrix.mode }}-composer-

- name: Install dependencies
run: |
[[ "${{ matrix.mode }}" = "low" ]] && composer update --no-progress --prefer-lowest || true
[[ "${{ matrix.mode }}" = "high" ]] && composer update --no-progress || true
- name: Show phpunit version
run: vendor/bin/phpunit --version

- name: Run testing
run: vendor/bin/phpunit

0 comments on commit 3cf44d9

Please sign in to comment.