generated from ergebnis/php-package-template
-
Notifications
You must be signed in to change notification settings - Fork 2
75 lines (64 loc) · 2.77 KB
/
continuous-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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
# file-version: 1.0
name: "Continuous Integration"
on:
- pull_request
- push
permissions:
contents: read
concurrency:
group: "${{ github.event_name }}-${{ github.workflow }}-${{ github.head_ref || github.run_id }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
validate:
name: "Validate Project"
uses: "mimmi20/ci/.github/workflows/[email protected]"
with:
extensions: "ctype, curl, dom, iconv, intl, mbstring, simplexml, tokenizer, xml, xmlwriter"
ini-values: "opcache.enable=1, opcache.fast_shutdown=0, zend.assertions=1, assert.exception=On, intl.default_locale=de, intl.use_exceptions=1, zend.exception_ignore_args=0"
composer-options: "--optimize-autoloader --prefer-dist --prefer-stable -v"
skip-validate-composer: false
skip-phplint: true
skip-check-composer: true
dependency-analyser-options: "--ignore-dev-in-prod-deps --ignore-unknown-classes"
install:
name: "Install Project"
needs: "validate"
uses: "mimmi20/ci/.github/workflows/[email protected]"
with:
extensions: "ctype, curl, dom, iconv, intl, mbstring, simplexml, tokenizer, xml, xmlwriter"
ini-values: "opcache.enable=1, opcache.fast_shutdown=0, zend.assertions=1, assert.exception=On, intl.default_locale=de, intl.use_exceptions=1, zend.exception_ignore_args=0"
composer-options: "--optimize-autoloader --prefer-dist --prefer-stable -v"
skip-php-install: false
skip-npm-install: true
# analytics:
# name: "Project Analysis"
#
# needs: "install"
#
# uses: "mimmi20/ci/.github/workflows/[email protected]"
# with:
# extensions: "ctype, curl, dom, iconv, intl, mbstring, simplexml, tokenizer, xml, xmlwriter"
# ini-values: "opcache.enable=1, opcache.fast_shutdown=0, zend.assertions=1, assert.exception=On, intl.default_locale=de, intl.use_exceptions=1, zend.exception_ignore_args=0"
# composer-options: "--optimize-autoloader --prefer-dist --prefer-stable -v"
# skip-phpstan: true
# skip-rector: true
# skip-phpmd: true
#
# tests:
# name: "UnitTests & Code Coverage"
#
# needs: "analytics"
#
# uses: "mimmi20/ci/.github/workflows/[email protected]"
# with:
# extensions: "ctype, curl, dom, iconv, intl, mbstring, simplexml, tokenizer, xml, xmlwriter"
# ini-values: "opcache.enable=1, opcache.fast_shutdown=0, zend.assertions=1, assert.exception=On, intl.default_locale=de, intl.use_exceptions=1, zend.exception_ignore_args=0"
# composer-options: "--optimize-autoloader --prefer-dist --prefer-stable -v"
# skip-phpunit: false
# skip-vitest: true
# skip-stryker: true
# min-msi: 100
# min-covered-msi: 100
# upload-codecov: true
# upload-codeclimate: false