Skip to content

Commit e745751

Browse files
committed
Merge branch 'main' into develop
2 parents 03db1ca + 7d9926f commit e745751

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/main.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ develop ]
6+
pull_request:
7+
branches: [ main, develop ]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Validate composer.json and composer.lock
17+
run: composer validate
18+
19+
- name: Cache Composer packages
20+
id: composer-cache
21+
uses: actions/cache@v2
22+
with:
23+
path: vendor
24+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
25+
restore-keys: |
26+
${{ runner.os }}-php-
27+
28+
- name: Install dependencies
29+
if: steps.composer-cache.outputs.cache-hit != 'true'
30+
run: composer install --prefer-dist --no-progress --no-suggest
31+
32+
- name: Run PHPUnit
33+
run: composer run test
34+
35+
- name: Run PHPStan
36+
run: composer run lint

0 commit comments

Comments
 (0)