Feature/537 add catalog.product image v3 #1336
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: "PhpCsFixer lint checks" | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| static-analysis: | |
| name: "PhpCsFixer" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Checkout" | |
| uses: "actions/checkout@v4" | |
| - name: "Export UID/GID for container user override" | |
| run: | | |
| echo "UID=$(id -u)" >> $GITHUB_ENV | |
| echo "GID=$(id -g)" >> $GITHUB_ENV | |
| - name: "Login to GitHub Container Registry" | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: "Pull Docker image (build if not yet published)" | |
| run: docker compose pull || docker compose build | |
| - name: "Install dependencies" | |
| run: make composer-install | |
| - name: "PhpCsFixer" | |
| run: make lint-cs-fixer | |
| - name: "is PhpCsFixer check succeeded" | |
| if: ${{ success() }} | |
| run: | | |
| echo '✅ PhpCsFixer check pass, congratulations!' | |
| - name: "is PhpCsFixer check failed" | |
| if: ${{ failure() }} | |
| run: | | |
| echo '::error:: ❗️ PhpCsFixer check failed (╯°益°)╯彡┻━┻' |