-
Notifications
You must be signed in to change notification settings - Fork 42
68 lines (59 loc) · 1.51 KB
/
Copy pathmain.yml
File metadata and controls
68 lines (59 loc) · 1.51 KB
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
name: CI
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
env:
APP_NAME: calendar
PHP_VERSIONS: '["8.3"]'
jobs:
get-vars:
runs-on: ubuntu-latest
outputs:
app-name: ${{ env.APP_NAME }}
php-versions: ${{ env.PHP_VERSIONS }}
steps:
- name: Set variables
run: |
echo "App name $APP_NAME"
echo "PHP versions string: $PHP_VERSIONS"
semantic-git-messages:
name: Commits
uses: owncloud/reusable-workflows/.github/workflows/semantic-git-message.yml@main
php-code-style:
name: PHP Code Style
needs:
- get-vars
uses: owncloud/reusable-workflows/.github/workflows/php-codestyle.yml@main
with:
app-name: ${{ needs.get-vars.outputs.app-name }}
php-versions: ${{ needs.get-vars.outputs.php-versions }}
disable-phpstan: true
disable-phan: true
php-unit:
name: PHP Unit
needs:
- get-vars
uses: owncloud/reusable-workflows/.github/workflows/php-unit.yml@main
with:
app-name: ${{ needs.get-vars.outputs.app-name }}
php-versions: ${{ needs.get-vars.outputs.php-versions }}
js-unit:
name: JS Unit
needs:
- get-vars
uses: owncloud/reusable-workflows/.github/workflows/js-unit.yml@main
with:
app-name: ${{ needs.get-vars.outputs.app-name }}
php-version: '8.3'
enable-xvfb-display-server: true