Continuous Integration #188
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
'on': | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
schedule: | |
- cron: '0 0 * * MON' | |
permissions: | |
contents: read | |
packages: read | |
jobs: | |
ci: | |
name: Continuous Integration | |
runs-on: ubuntu-latest | |
env: | |
BUILDKIT_PROGRESS: plain | |
DOCKER_BUILDKIT: 1 | |
CI: 1 | |
steps: | |
- | |
name: Log in to the Container registry | |
uses: docker/login-action@v2 | |
with: | |
registry: 'ghcr.io' | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- | |
uses: actions/checkout@v3 | |
- | |
name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
tools: jolicode/castor | |
- | |
name: 'Build and start the infrastructure' | |
run: castor start | |
- | |
name: 'Run PHP-CS-Fixer' | |
run: castor qa:cs --dry-run | |
- | |
name: 'Run PHPStan' | |
run: castor qa:phpstan | |
- | |
name: 'Run PHPUnit' | |
run: castor qa:phpunit |