Skip to content

Commit eb320df

Browse files
committed
Refactor test-autoreview.yml
1 parent f2e9d27 commit eb320df

File tree

1 file changed

+6
-30
lines changed

1 file changed

+6
-30
lines changed

.github/workflows/test-autoreview.yml

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -20,33 +20,9 @@ concurrency:
2020

2121
jobs:
2222
auto-review-tests:
23-
name: Automatic Code Review
24-
runs-on: ubuntu-22.04
25-
26-
steps:
27-
- name: Checkout
28-
uses: actions/checkout@v3
29-
30-
- name: Setup PHP
31-
uses: shivammathur/setup-php@v2
32-
with:
33-
php-version: '8.0'
34-
coverage: none
35-
36-
- name: Get composer cache directory
37-
run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV
38-
39-
- name: Cache dependencies
40-
uses: actions/cache@v3
41-
with:
42-
path: ${{ env.COMPOSER_CACHE_FILES_DIR }}
43-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
44-
restore-keys: ${{ runner.os }}-composer-
45-
46-
- name: Install dependencies
47-
run: composer update --ansi
48-
env:
49-
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
50-
51-
- name: Run AutoReview Tests
52-
run: vendor/bin/phpunit --color=always --group=AutoReview --no-coverage
23+
uses: ./.github/workflows/reusable-serviceless-phpunit-test.yml # @TODO Extract to codeigniter4/.github repo
24+
with:
25+
job-name: Automatic Code Review [PHP 8.1]
26+
php-version: '8.1'
27+
job-id: auto-review-tests
28+
group-name: AutoReview

0 commit comments

Comments
 (0)