-
Notifications
You must be signed in to change notification settings - Fork 2
111 lines (94 loc) · 2.83 KB
/
gh-action.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#
# JBZoo Toolbox - CI-Report-Converter.
#
# This file is part of the JBZoo Toolbox project.
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @license MIT
# @copyright Copyright (C) JBZoo.com, All rights reserved.
# @see https://github.com/JBZoo/CI-Report-Converter
#
name: GitHub Action
on:
pull_request:
branches:
- "*"
push:
branches:
- 'master'
schedule:
- cron: '15 */8 * * *'
jobs:
# Trying to run current version of GH action
develop:
name: Develop
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: JUnit.xml
uses: ./
with:
input-format: junit
input-file: tests/fixtures/origin/phpunit/junit-nested.xml
- name: CheckStyle.xml
uses: ./
with:
input-file: tests/fixtures/origin/phpcs/codestyle.xml
- name: PHP Mess Detector
uses: ./
with:
input-format: phpmd-json
input-file: tests/fixtures/origin/phpmd/json.json
- name: PHP Magic Numbers Detector
uses: ./
with:
input-format: phpmnd
input-file: tests/fixtures/origin/phpmnd/phpmnd.xml
- name: Psalm.json
uses: ./
with:
input-format: psalm-json
input-file: tests/fixtures/origin/psalm/json.json
- name: PMD CPD.xml
uses: ./
with:
input-format: pmd-cpd
input-file: tests/fixtures/origin/phpcpd/pmd-cpd.xml
# Check compatibility of fixtures with master branch in GH Marketplace
production:
name: Production
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: JUnit.xml
uses: jbzoo/ci-report-converter@master
with:
input-format: junit
input-file: tests/fixtures/origin/phpunit/junit-nested.xml
- name: CheckStyle.xml
uses: jbzoo/ci-report-converter@master
with:
input-file: tests/fixtures/origin/phpcs/codestyle.xml
- name: PHP Mess Detector
uses: jbzoo/ci-report-converter@master
with:
input-format: phpmd-json
input-file: tests/fixtures/origin/phpmd/json.json
- name: PHP Magic Numbers Detector
uses: jbzoo/ci-report-converter@master
with:
input-format: phpmnd
input-file: tests/fixtures/origin/phpmnd/phpmnd.xml
- name: Psalm.json
uses: jbzoo/ci-report-converter@master
with:
input-format: psalm-json
input-file: tests/fixtures/origin/psalm/json.json
- name: PMD CPD.xml
uses: jbzoo/ci-report-converter@master
with:
input-format: pmd-cpd
input-file: tests/fixtures/origin/phpcpd/pmd-cpd.xml