-
Notifications
You must be signed in to change notification settings - Fork 22
79 lines (67 loc) · 2.87 KB
/
deployment_vars.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
name: Deployment variable tests
on:
pull_request:
paths:
- 'src/init/register_configure_agent.sh'
- 'src/win32/InstallerScripts.vbs'
jobs:
test_ubuntu:
name: Test Deployment variables on Ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Wait for build to succeed
uses: fountainhead/action-wait-for-check@v1.0.0
id: wait-for-build-deb
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: 'Build Linux amd64 agent deb package'
ref: ${{ github.event.pull_request.head.sha || github.sha }}
timeoutSeconds: 3600
intervalSeconds: 60
- name: Fail after timeout
if: steps.wait-for-build.outputs.conclusion == 'timed_out'
run: exit 1
- name: Run test
if: steps.wait-for-build-deb.outputs.conclusion == 'success'
run: sudo bash .github/actions/test_deploy_ubuntu.sh ${{ github.event.pull_request.head.sha || github.sha }}
test_macos:
name: Test Deployment variables on macOS
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Wait for build to succeed
uses: fountainhead/action-wait-for-check@v1.0.0
id: wait-for-build-macos
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: 'Build macOS agent package signed MacOS'
ref: ${{ github.event.pull_request.head.sha || github.sha }}
timeoutSeconds: 3600
intervalSeconds: 60
- name: Fail after timeout
if: steps.wait-for-build.outputs.conclusion == 'timed_out'
run: exit 1
- name: Run test
if: steps.wait-for-build-macos.outputs.conclusion == 'success'
run: sudo bash .github/actions/test_deploy_macos.sh ${{ github.event.pull_request.head.sha || github.sha }}
test_windows:
name: Test Deployment variables on Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Wait for build to succeed
uses: fountainhead/action-wait-for-check@v1.0.0
id: wait-for-build-win
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: 'Build Windows i386 agent package'
ref: ${{ github.event.pull_request.head.sha || github.sha }}
timeoutSeconds: 3600
intervalSeconds: 60
- name: Fail after timeout
if: steps.wait-for-build.outputs.conclusion == 'timed_out'
run: exit 1
- name: Run test
if: steps.wait-for-build-win.outputs.conclusion == 'success'
run: .github/actions/test_deploy_win.ps1 ${{ github.event.pull_request.head.sha || github.sha }}