-
Notifications
You must be signed in to change notification settings - Fork 8
60 lines (48 loc) · 1.4 KB
/
buildcheck.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
53
54
55
56
57
58
59
60
on:
pull_request:
push:
schedule:
- cron: 0 10 21 * *
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- "7.2"
- "7.3"
- "7.4"
- "8.0"
- "8.1"
composer:
- ""
- "--prefer-lowest"
steps:
- uses: actions/checkout@v1
- name: Create Docker Container
run: |
docker build . -t ci-image --build-arg PHP_VERSION=${{ matrix.php }}
docker run --interactive --detach --volume ${{ github.workspace }}:/app --name ci ci-image
- name: Install Dependencies
run: docker exec ci composer update --no-interaction --no-ansi --prefer-dist ${{ matrix.composer }}
- name: PHPUnit
run: docker exec ci vendor/bin/phpunit
- name: Coding Standards
run: docker exec ci vendor/bin/phpcs
- name: Check Dependencies
run: docker exec ci vendor/bin/composer-require-checker
- name: Composer Validate
run: docker exec ci composer validate --strict
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "7.4"
- name: Install Dependencies
run: composer update --no-interaction --no-ansi --prefer-dist
- name: PHPUnit
run: vendor/bin/phpunit