Skip to content

Commit

Permalink
Change main GitHub workflow to use internal Docker image as host
Browse files Browse the repository at this point in the history
  • Loading branch information
coenjacobs committed Sep 8, 2024
1 parent d379fb8 commit cce4784
Showing 1 changed file with 12 additions and 48 deletions.
60 changes: 12 additions & 48 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,60 +9,24 @@ on:
- master

jobs:
tests:
linting:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.0', '8.1', '8.2', '8.3']
name: PHP ${{ matrix.php }} tests
name: Linting
steps:
- uses: actions/checkout@v3
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Debugging
run: |
php --version
php -m
composer --version
- name: Install dependencies
run: composer install --prefer-dist --no-suggest --no-progress
- name: Run tests
run: vendor/bin/phpunit --printer mheap\\GithubActionsReporter\\Printer
analysis:
- name: Run linting
run: docker compose run --rm builder composer test:lint
testing:
runs-on: ubuntu-latest
name: Analysis of code
name: Testing
steps:
- uses: actions/checkout@v3
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
- name: Debugging
run: |
php --version
php -m
composer --version
- name: Install dependencies
run: composer install --prefer-dist --no-suggest --no-progress
- name: Run validate
run: composer run analysis
lint:
- name: Run testing
run: docker compose run --rm builder composer test:phpunit
analysis:
runs-on: ubuntu-latest
name: Lint all project files
name: Analysis
steps:
- uses: actions/checkout@v3
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
- name: Debugging
run: |
php --version
php -m
composer --version
- name: Install dependencies
run: composer install --prefer-dist --no-suggest --no-progress
- name: Run validate
run: composer run lint
- name: Run analysis
run: docker compose run --rm builder composer test:analysis

0 comments on commit cce4784

Please sign in to comment.