Skip to content

Commit 0bdd5fe

Browse files
Testing reusing of workflow
Signed-off-by: Bastian Schwarz <bastian@codename-php.de>
1 parent c06a63e commit 0bdd5fe

1 file changed

Lines changed: 2 additions & 37 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -16,40 +16,5 @@ on:
1616
- '**.md'
1717

1818
jobs:
19-
test_latest:
20-
strategy:
21-
matrix:
22-
php-versions: [ '8.1' ]
23-
prefer: [ 'prefer-lowest', 'prefer-stable' ]
24-
name: Test with ${{ matrix.prefer }} dependency versions on PHP ${{ matrix.php-versions }}
25-
runs-on: ubuntu-latest
26-
27-
steps:
28-
- name: Checkout
29-
uses: actions/checkout@v2
30-
31-
- name: Setup PHP
32-
uses: shivammathur/setup-php@v2
33-
with:
34-
php-version: ${{ matrix.php-versions }}
35-
coverage: xdebug
36-
37-
- name: Validate composer.json
38-
run: composer validate
39-
40-
- name: Get Composer Cache Directory
41-
id: composer-cache
42-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
43-
- name: Setup cache
44-
uses: actions/cache@v2
45-
with:
46-
path: ${{ steps.composer-cache.outputs.dir }}
47-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ matrix.prefer }}-
48-
restore-keys: ${{ runner.os }}-composer-${{ matrix.prefer }}-
49-
50-
- name: Install dependencies
51-
if: steps.composer-cache.outputs.cache-hit != 'true'
52-
run: composer update --prefer-dist --no-ansi --no-interaction --no-progress --${{ matrix.prefer }}
53-
54-
- name: Run CI tools
55-
run: composer ci-all
19+
ci:
20+
uses: codenamephp/workflows.php/main/ci.yml@main

0 commit comments

Comments
 (0)