forked from christian-putzke/freshrss-pocket-button
-
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1.13 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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