fix(ci): auto tests #3
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: Automated tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout FreshRSS source code | |
uses: actions/checkout@v4 | |
with: | |
repository: FreshRSS/FreshRSS | |
- name: Git checkout source code | |
uses: actions/checkout@v4 | |
with: | |
path: extensions | |
- name: Cache Composer dependencies | |
uses: actions/cache@v3 | |
with: | |
path: /tmp/composer-cache | |
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | |
- name: Run FreshRSS phpstan script | |
uses: php-actions/composer@v6 | |
with: | |
command: run-script | |
ags: phpstan |