fix: handle trailing slash in Wallabag url #5
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: | |
# 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@v4 | |
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 |