34 lines
917 B
YAML
34 lines
917 B
YAML
name: CI
|
|
run-name: ${{ github.actor}} runs CI
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
phpstan:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
# - uses: php-actions/composer@v6
|
|
# env:
|
|
# COMPOSER_ROOT_VERSION: dev-master
|
|
- name: "Restore result cache"
|
|
uses: actions/cache/restore@v4
|
|
with:
|
|
path: ./tmp
|
|
key: "result-cache-v1-${{ matrix.php-version }}-${{ github.run_id }}"
|
|
restore-keys: |
|
|
result-cache-v1-${{ matrix.php-version }}-
|
|
- name: PHPStan Static Analysis
|
|
uses: php-actions/phpstan@v3
|
|
with:
|
|
path: src/
|
|
- name: "Save result cache"
|
|
uses: actions/cache/save@v4
|
|
if: always()
|
|
with:
|
|
path: ./tmp
|
|
key: "result-cache-v1-${{ matrix.php-version }}-${{ github.run_id }}"
|
|
# - name: PHPunit Tests
|
|
# run: |
|
|
# vendor/bin/phpunit
|