Skip to content

Commit fc75697

Browse files
committed
chore: test github actions / workflows
1 parent 9b6bb57 commit fc75697

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ test export-ignore
33
.gitattributes export-ignore
44
phpunit.xml* export-ignore
55
phpcs.xml export-ignore
6+
.github export-ignore

.github/workflows/check-pr.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Check pull request
2+
on:
3+
pull_request:
4+
branches:
5+
- '**.x'
6+
jobs:
7+
testing:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
php: [7.2, 7.3, 7.4]
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Setup PHP with composer
17+
uses: actions/setup-php@v2
18+
with:
19+
php-version: ${{ matrix.php }}
20+
tools: composer
21+
22+
- name: Install dependencies
23+
run: composer install
24+
25+
- name: Lint syntax
26+
run: composer lint
27+
28+
- name: Run unit tests
29+
run: composer test

0 commit comments

Comments
 (0)