-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update GH Action, fix CS, fix phpstan issues, fix deprecations
- Loading branch information
Showing
12 changed files
with
65 additions
and
62 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,59 @@ | ||
name: Continuous Integration | ||
|
||
'on': | ||
"on": | ||
push: | ||
branches: [ "main" ] | ||
branches: ["main"] | ||
pull_request: | ||
branches: [ "main" ] | ||
branches: ["main"] | ||
schedule: | ||
- cron: '0 0 * * MON' | ||
- 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@v4 | ||
|
||
- name: Check php/Dockerfile | ||
uses: hadolint/[email protected] | ||
with: | ||
dockerfile: infrastructure/docker/services/php/Dockerfile | ||
|
||
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 | ||
- 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@v4 | ||
|
||
- name: setup-castor | ||
uses: castor-php/[email protected] | ||
|
||
- name: "Build and start the infrastructure" | ||
run: "castor start" | ||
|
||
- name: "Check PHP coding standards" | ||
run: "castor qa:cs --dry-run" | ||
|
||
- name: "Run PHPStan" | ||
run: "castor qa:phpstan" | ||
|
||
- name: "Run PHPUnit" | ||
run: "castor qa:phpunit" |
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
Empty file.
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
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
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
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
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
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
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
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
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