-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): automated tests fix(ci): auto tests fix(ci): auto test fix(ci): typo fix(ci): auto test fix(ci): ci fix(ci): add debug fix(ci): debug fix(ci): debug fix: ci fix: ci fix: ci
- Loading branch information
Showing
3 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Automated tests | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-24.04 | ||
|
||
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: 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: 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: PHPStan | ||
run: composer run-script phpstan |
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
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