-
Notifications
You must be signed in to change notification settings - Fork 13
120 lines (108 loc) · 3.91 KB
/
orca.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
---
name: Tests
on:
push:
branches: [ main, develop, wip, support/** ]
pull_request:
branches: [ develop ]
schedule:
# Sunday at 00:00:00 UTC.
# @see https://crontab.cronhub.io/
- cron: "0 0 * * 0"
jobs:
build:
runs-on: ubuntu-latest
env:
ORCA_SUT_NAME: acquia/coding-standards
ORCA_SUT_BRANCH: master
ORCA_VERSION: ${{ matrix.orca-version }}
ORCA_TELEMETRY_ENABLE: TRUE
ORCA_JOB: ${{ matrix.orca-job }}
ORCA_COVERALLS_ENABLE: ${{ matrix.coveralls-enable }}
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Google env variables.
ORCA_GOOGLE_API_CLIENT_ID: ${{ secrets.ORCA_GOOGLE_API_CLIENT_ID }}
ORCA_GOOGLE_API_CLIENT_SECRET: ${{ secrets.ORCA_GOOGLE_API_CLIENT_SECRET }}
ORCA_GOOGLE_API_REFRESH_TOKEN: ${{ secrets.ORCA_GOOGLE_API_REFRESH_TOKEN }}
strategy:
matrix:
orca-job:
- STATIC_CODE_ANALYSIS
- INTEGRATED_TEST_ON_OLDEST_SUPPORTED
- INTEGRATED_TEST_ON_LATEST_LTS
- INTEGRATED_TEST_ON_PREVIOUS_MINOR
# - INTEGRATED_UPGRADE_TEST_FROM_PREVIOUS_MINOR
- ISOLATED_TEST_ON_CURRENT
- INTEGRATED_TEST_ON_CURRENT
# - INTEGRATED_UPGRADE_TEST_TO_NEXT_MINOR
- ISOLATED_TEST_ON_CURRENT_DEV
- INTEGRATED_TEST_ON_CURRENT_DEV
- STRICT_DEPRECATED_CODE_SCAN
- ISOLATED_TEST_ON_NEXT_MINOR
- INTEGRATED_TEST_ON_NEXT_MINOR
# - ISOLATED_UPGRADE_TEST_TO_NEXT_MAJOR_BETA_OR_LATER
# - ISOLATED_UPGRADE_TEST_TO_NEXT_MAJOR_DEV
- DEPRECATED_CODE_SCAN_W_CONTRIB
- INTEGRATED_TEST_ON_NEXT_MINOR_DEV
- ISOLATED_TEST_ON_NEXT_MINOR_DEV
# - INTEGRATED_UPGRADE_TEST_TO_NEXT_MINOR_DEV
- LOOSE_DEPRECATED_CODE_SCAN
php-version: [ "8.1", "8.3" ]
coveralls-enable: [ "FALSE" ]
orca-version: [ "^4" ]
include:
- orca-job: INTEGRATED_TEST_ON_LATEST_EOL_MAJOR
php-version: "8.1"
coveralls-enable: "FALSE"
orca-version: "^4"
- orca-job: INTEGRATED_TEST_ON_LATEST_EOL_MAJOR
php-version: "8.0"
coveralls-enable: "FALSE"
orca-version: "^3"
# - orca-job: ISOLATED_TEST_ON_NEXT_MAJOR_LATEST_MINOR_DEV
# php-version: "8.1"
# coveralls-enable: "FALSE"
# - orca-job: INTEGRATED_TEST_ON_NEXT_MAJOR_LATEST_MINOR_DEV
# php-version: "8.1"
# coveralls-enable: "FALSE"
# - orca-job: ISOLATED_TEST_ON_NEXT_MAJOR_LATEST_MINOR_BETA_OR_LATER
# php-version: "8.1"
# coveralls-enable: "FALSE"
# - orca-job: INTEGRATED_TEST_ON_NEXT_MAJOR_LATEST_MINOR_BETA_OR_LATER
# php-version: "8.1"
# coveralls-enable: "FALSE"
# - orca-job: ISOLATED_TEST_ON_CURRENT
# php-version: "8.0"
# coveralls-enable: "FALSE"
# Custom job
- php-version: "8.1"
orca-job: ""
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12.x
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: xdebug
- name: Before install
run: |
composer create-project --no-dev acquia/orca ../orca "$ORCA_VERSION"
../orca/bin/ci/before_install.sh
- name: Install
run: |
../orca/bin/ci/install.sh
./.github/install.sh
- name: Before script
run: ../orca/bin/ci/before_script.sh
- name: Script
run: ./.github/script.sh
- name: After script
run: ../orca/bin/ci/after_script.sh
- name: After success
if: ${{ success() }}
run: ../orca/bin/ci/after_success.sh
- name: After failure
if: ${{ failure() }}
run: ../orca/bin/ci/after_failure.sh