Add simple docker setup with easy code style and PHPStan #1
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: Run Code Style Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_run: | |
workflows: ["Build Docker Image"] | |
types: | |
- completed | |
jobs: | |
codestyle: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Download Docker image artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: docker-image | |
path: ./image.tar.gz | |
- name: Load Docker image | |
run: | | |
docker load < ./image.tar.gz | |
- name: Run codestyle tests | |
run: | | |
docker run --rm php-ci ./Taskfile codestyle |