Fix builder castor command #234
Workflow file for this run
This file contains hidden or 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 | |
| env: | |
| # Fix for symfony/color detection. We know GitHub Actions can handle it | |
| ANSICON: 1 | |
| CASTOR_CONTEXT: ci | |
| jobs: | |
| check-dockerfiles: | |
| name: Check Dockerfile | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Check php/Dockerfile | |
| uses: hadolint/hadolint-action@v3.1.0 | |
| with: | |
| dockerfile: infrastructure/docker/services/php/Dockerfile | |
| ci: | |
| name: Continuous Integration | |
| runs-on: ubuntu-latest | |
| 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@v6 | |
| - name: setup-castor | |
| uses: castor-php/setup-castor@v1.0.0 | |
| - name: "Build and start the infrastructure" | |
| run: "castor start" | |
| - name: "Check PHP coding standards" | |
| run: "castor qa:cs --dry-run" | |
| - name: "Run Twig CS" | |
| run: "castor qa:twig-cs --dry-run" | |
| - name: "Run PHPStan" | |
| run: | | |
| # PHPStan need the container to be compiled | |
| castor --context=ci builder -- bin/console about --env=dev | |
| castor qa:phpstan | |
| - name: "Run PHPUnit" | |
| run: "castor qa:phpunit" |