-
Notifications
You must be signed in to change notification settings - Fork 19
104 lines (99 loc) · 3.01 KB
/
ci-enterprise.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
name: Enterprise Edition - Professor M's School for Gifted Coders GitHub Actions
on: [push]
jobs:
PHP-PackageGenerator-Test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: package
strategy:
matrix:
php-versions: ['7.3', '7.4']
name: PHP ${{ matrix.php-versions }} PackageGenerator test
steps:
- uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run test suite
run: composer run-script test
NodeJS-PackageGenerator-Test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: tests/jasmine
strategy:
matrix:
node: [ '14', '16' ]
name: Node ${{ matrix.node }} Jasmin test
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Install Packages
run: yarn install
- name: Run Tests
run: yarn test
Pack-Professor-M:
runs-on: ubuntu-latest
defaults:
run:
working-directory: package
steps:
- uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: 7.4
- name: Cache Professor-M packages
id: packages-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Package Professor-M
run: ./pack.php -v $(date +'%Y%m%d-%H.%M.%S')
- uses: actions/upload-artifact@master
with:
name: professorM-artifact
path: package/releases/
Run-Tests-Sugar-Edition:
runs-on: ubuntu-latest
needs: Pack-Professor-M
defaults:
run:
working-directory: scripts
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@master
with:
name: professorM-artifact
path: package/releases
- name: Run test suite
env:
SUGAR_EDITION: Ent
SUGAR_VERSION: 11.2
SUGARCLUB_USERNAME: ${{ secrets.SUGARCLUB_USERNAME }}
SUGARCLUB_PASSWORD: ${{ secrets.SUGARCLUB_PASSWORD }}
GTB_USERNAME: ${{ secrets.GTB_USERNAME }}
GTB_PASSWORD: ${{ secrets.GTB_PASSWORD }}
SUGAR_LICENSE_KEY: ${{ secrets.SUGAR_ENTERPRISE_LICENSE_KEY }}
run: |
./SetupEnvAndRunTests.sh $SUGARCLUB_USERNAME $SUGARCLUB_PASSWORD $SUGAR_VERSION $SUGAR_EDITION $GTB_USERNAME $GTB_PASSWORD workspace/sugardocker