This repository has been archived by the owner on Sep 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 749
144 lines (123 loc) · 3.82 KB
/
actions.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
name: PHP actions
on:
push:
branches:
- developer
pull_request:
branches:
- developer
jobs:
composer:
name: Composer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 🔎 Check IP
run: curl https://api.ipify.org
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
code:
name: Code
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: PHP VarDump Check Action
uses: umutphp/php-var-dump-check-action@v1
with:
exclude: 'vendor,tests'
- name: Check PHP syntax errors
uses: overtrue/phplint@8.0
- name: DevSkim
uses: microsoft/DevSkim-Action@v1
- name: codecov.io/validate
run: curl --data-binary @codecov.yml https://codecov.io/validate
copilot:
name: CoPilot
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 18
- name: Upload to CoPilot
run: bash <(curl -s https://copilot.blackducksoftware.com/ci/githubactions/scripts/upload)
test_swagger_editor_validator_remote:
runs-on: ubuntu-latest
name: Swagger Editor Validator Remote
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Validate OpenAPI definition - WebservicePremium.yaml
uses: char0n/swagger-editor-validate@v1.3.1
with:
definition-file: api/doc/WebservicePremium.yaml
- name: Validate OpenAPI definition - ManageConsents.yaml
uses: char0n/swagger-editor-validate@v1.3.1
with:
definition-file: api/doc/ManageConsents.yaml
- name: Validate OpenAPI definition - WebserviceStandard.yaml
uses: char0n/swagger-editor-validate@v1.3.1
with:
definition-file: api/doc/WebserviceStandard.yaml
gitGuardian:
name: GitGuardian scan
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: GitGuardian scan
uses: GitGuardian/gg-shield-action@master
env:
GITHUB_PUSH_BEFORE_SHA: ${{ github.event.before }}
GITHUB_PUSH_BASE_SHA: ${{ github.event.base }}
GITHUB_PULL_BASE_SHA: ${{ github.event.pull_request.base.sha }}
GITHUB_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}
#
# Documentation:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
#
build:
name: Lint Code Base
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Lint Code Base
uses: docker://github/super-linter:v4.9.6
env:
DEFAULT_BRANCH: developer
FILTER_REGEX_EXCLUDE: .*(*.min.js|*.min.css).*s
VALIDATE_ALL_CODEBASE: false
VALIDATE_PHP: true
VALIDATE_JSON: true
VALIDATE_YAML: true
VALIDATE_XML: true
VALIDATE_BASH: true
VALIDATE_DOCKER: true
VALIDATE_CSS: true
VALIDATE_OPENAPI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}