Skip to content

Commit

Permalink
feat: add automated tests
Browse files Browse the repository at this point in the history
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
kalvn committed Jan 11, 2025
1 parent 014cfa4 commit 60a9726
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 1 deletion.
44 changes: 44 additions & 0 deletions .github/workflows/tests.yml
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## [v1.1.2](https://github.com/kalvn/freshrss-mark-previous-as-read/releases/tag/v1.1.2) - 2025-01-06
### Changed
- Improve code organization and robustness.
- Add automated code style check.

## [v1.1.1](https://github.com/kalvn/freshrss-mark-previous-as-read/releases/tag/v1.1.1) - 2024-05-25
### Changed
- Inverted settings to choose between all previous entries and only those belonging to the same feed for more clarity.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

class FreshExtension_markPreviousAsRead_Controller extends Minz_ActionController
{
/** @var MarkPreviousAsRead\View */
/**
* @var MarkPreviousAsRead\View
* @phpstan-ignore property.phpDocType
*/
protected $view;

public function jsVarsAction(): void
Expand Down

0 comments on commit 60a9726

Please sign in to comment.