-
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (35 loc) · 1.3 KB
/
integration.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
name: "continuous-integration"
on: [push, pull_request]
jobs:
build:
name: Build captainhook secrets on ${{ matrix.php }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
php: ['8.0', '8.1', '8.2', '8.3']
experimental: [false]
steps:
- uses: actions/checkout@master
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
extensions: mbstring
- name: PHP Version
run: php -v
- name: Update composer
run: composer self-update
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Install tooling
run: GITHUB_AUTH_TOKEN=${{ secrets.GITHUB_TOKEN }} tools/phive --no-progress --home ./.phive install --force-accept-unsigned --trust-gpg-keys 661E97400F658E25,4AA394086372C20A,31C7E470E2138192,8E730BA25823D8B5,CF1A108D0E7AE720,2DF45277AEF09A2F,51C67305FFC2E5C0
- name: Execute unit tests
run: tools/phpunit --no-coverage
- name: Check coding style
run: tools/phpcs --standard=psr12 src tests
- name: Static code analysis
run: tools/phpstan analyse