-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1016 Bytes
/
main.yaml
File metadata and controls
37 lines (37 loc) · 1016 Bytes
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
name: Validation
on:
push:
branches: ['**'] # Do not run on tags
jobs:
lint:
name: Lint with PHP_CodeSniffer
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@2.1.3
with:
php-version: 7.4
tools: prestissimo
coverage: none
- name: Install dependencies
run: composer install --no-progress --no-suggest --prefer-dist
- name: Run PHP_CodeSniffer
run: vendor/bin/phpcs
tests:
name: Test with PHPUnit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@2.1.3
with:
php-version: 7.4
tools: prestissimo
coverage: none
- name: Install dependencies
run: composer install --no-progress --no-suggest --prefer-dist
- name: Run PHPUnit
run: vendor/bin/phpunit --testdox