2024 #11
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
tests: | |
name: "Tests" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
coverage: "none" | |
php-version: "8.1" | |
ini-file: development | |
tools: composer:v2 | |
- name: Docker compose up | |
run: docker-compose up -d | |
- name: Install dependencies | |
run: composer install --no-interaction --no-progress --no-suggest | |
- name: Run tests | |
run: vendor/bin/pest | |
static_analysis: | |
name: Static analysis | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
coverage: "none" | |
php-version: "8.1" | |
ini-file: development | |
- name: Install dependencies | |
run: composer install --no-interaction --no-progress --no-suggest | |
- name: Run phpstan | |
run: vendor/bin/phpstan analyse --ansi --no-progress |