chore(deps): update dependency fond-of-codeception/spryker to v2.4.1 #71
Workflow file for this run
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: PHP 8.2 with Docker Compose | |
on: | |
push: | |
branches: | |
- main # Change this to your main branch name | |
pull_request: | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Docker Compose | |
run: | | |
sudo curl -L "https://github.com/docker/compose/releases/download/v2.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
if: runner.os == 'Linux' | |
- name: Log in to Docker Hub (if needed) | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
if: env.username != '' && env.password != '' | |
- name: Build and run containers | |
run: | | |
docker-compose up composer | |
docker-compose up --detach php db | |
docker compose exec php composer install --optimize-autoloader --ignore-platform-reqs | |
docker-compose exec php vendor/bin/codecept build --quiet | |
working-directory: ./ # Change this to your project's directory | |
- name: Execute code sniffer | |
run: | | |
docker-compose exec php composer cs-check | |
working-directory: ./ # Change this to your project's directory | |
- name: Execute phpstan | |
run: | | |
docker-compose exec php composer phpstan | |
working-directory: ./ # Change this to your project's directory | |
- name: Run tests | |
run: | | |
docker-compose exec php composer tests | |
working-directory: ./ # Change this to your project's directory | |
- name: Stop and remove containers | |
run: | | |
docker-compose down | |
working-directory: ./ # Change this to your project's directory | |