Skip to content

Fix branch for CI

Fix branch for CI #1

Workflow file for this run

name: Automated tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
tests:
# https://github.com/actions/virtual-environments
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./Extensions
steps:
- name: Git checkout source code
uses: actions/checkout@v4
with:
path: Extensions
# Composer tests
- name: Check PHP syntax
run: composer run-script php-lint
- name: Check PHTML syntax
run: composer run-script phtml-lint
- name: Use Composer cache
id: composer-cache
uses: actions/cache@v3
with:
path: Extensions/vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Run Composer install
run: composer install --prefer-dist --no-progress
if: steps.composer-cache.outputs.cache-hit != 'true'
- name: Git checkout FreshRSS source code
uses: actions/checkout@v4
with:
repository: FreshRSS/FreshRSS
path: FreshRSS
- name: PHPStan
run: composer run-script phpstan