-
-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (36 loc) · 1.31 KB
/
auto-review.yaml
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
name: AutoReview
on:
push:
branches: [ main ]
pull_request: null
schedule:
# Do not make it the first of the month and/or midnight since it is a very busy time
- cron: "* 10 5 * *"
jobs:
test:
runs-on: ubuntu-latest
name: AutoReview
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
tools: composer
coverage: none
- name: Install Composer dependencies
uses: ramsey/composer-install@v2
- name: Install PHP-CS-Fixer Composer dependencies
uses: ramsey/composer-install@v2
with:
working-directory: 'vendor-bin/php-cs-fixer'
- name: Ensure PHP-CS-Fixer is properly installed
run: make php_cs_fixer_install
- name: Install Psalm Composer dependencies
uses: ramsey/composer-install@v2
with:
working-directory: 'vendor-bin/psalm'
- name: Ensure Psalm is properly installed
run: make psalm_install
- run: make autoreview --keep-going