-
Notifications
You must be signed in to change notification settings - Fork 0
309 lines (294 loc) · 11.2 KB
/
test.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
# WARNING: May be untested .
name: test
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
permissions:
actions: write
checks: read
contents: read
deployments: read
issues: none
packages: read
pull-requests: read
repository-projects: read
security-events: none
statuses: read
on:
push:
workflow_dispatch:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
schedule:
#- cron: '5 1 * * 6'
#- cron: '5 1 * * 2,4'
#- cron: '5 1 * * 2'
#- cron: '5 1 * * 4'
- cron: '5 1 * * 5'
# https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test_latest:
runs-on: ubuntu-latest
#runs-on: ubuntu-20.04
#runs-on: ubuntu-18.04
steps:
- name: _getCore_ub
shell: bash
timeout-minutes: 90
run: |
mkdir -p ~/core/infrastructure
cd ~/core/infrastructure
git clone --depth 1 --recursive https://github.com/mirage335-colossus/ubiquitous_bash.git
cd ubiquitous_bash
./_setupUbiquitous.bat
- name: _getMinimal_cloud
shell: bash
run: |
~/core/infrastructure/ubiquitous_bash/ubiquitous_bash.sh _getMinimal_cloud
timeout-minutes: 90
#- name: write! secrets
#shell: bash
#run: |
#~/core/infrastructure/ubiquitous_bash/ubiquitous_bash.sh _prepare_rclone_limited_file
#env:
#rclone_limited_conf_base64: ${{ secrets.rclone_limited_conf_base64 }}
#timeout-minutes: 5
- uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: 'recursive'
- name: _getMinimal_cloud
shell: bash
run: |
./ubiquitous_bash.sh _getMinimal_cloud
timeout-minutes: 90
- name: type-rclone
shell: bash
run: |
type rclone
timeout-minutes: 90
- name: test-lean
shell: bash
run: |
#export devfast="true"
./_lib/ubiquitous_bash/lean.sh _test | sudo -n tee /_test-lean.log
timeout-minutes: 90
- name: _compile
shell: bash
timeout-minutes: 90
run: |
./_lib/ubiquitous_bash/_bin.bat ./compile.sh | sudo -n tee /_compile.log
./_lib/ubiquitous_bash/_bin.bat ./compile.sh
./_lib/ubiquitous_bash/_bin.bat ./compile.sh
- name: test-lean
shell: bash
run: |
./_lib/ubiquitous_bash/lean.sh _test | sudo -n tee /_test-lean-after_compile.log
timeout-minutes: 90
- name: test-extendedInterface
shell: bash
run: |
./extendedInterface.sh _test | sudo -n tee /_test-extendedInterface.log
timeout-minutes: 90
#- name: test-ubiquitous_bash
#shell: bash
#run: |
#./ubiquitous_bash.sh _test | sudo -n tee /_test-ubiquitous_bash.log
#timeout-minutes: 90
# Other 'ubcp' tests must be essentially identical.
# sleep 120
# rclone --progress --config /rclone.conf copy distLLC_release_ro:ubcp/package_ubcp-core.7z ./
# rclone --progress --config /rclone.conf copy distLLC_build_ubcp:package_ubcp-core.7z ./
test_extendedInterface_ubcp_release_mswLatest:
runs-on: windows-latest
#runs-on: windows-2022
#runs-on: windows-2019
steps:
#- name: write! secrets
#id: secret-file1
#run: |
#$secretFile = "/rclone.conf"
#$encodedBytes = [System.Convert]::FromBase64String($env:rclone_limited_conf_base64)
#Set-Content $secretFile -Value $encodedBytes -AsByteStream
#shell: pwsh
#env:
#rclone_limited_conf_base64: ${{ secrets.rclone_limited_conf_base64 }}
- name: _getCore_ubcp-extendedInterface
shell: pwsh
timeout-minutes: 180
run: |
#mkdir /
cd /
#Invoke-WebRequest -Uri (((Invoke-RestMethod -Uri "https://api.github.com/repos/mirage335-colossus/extendedInterface/releases") | Where-Object { $_.name -eq "internal" } | ForEach-Object { $_.assets } | Where-Object {$_.name -eq "extIface.exe"} | Sort-Object -Property {$_.browser_download_url -replace '\D+(\d+)-\d+$', '$1'} -Descending | Select-Object -First 1).browser_download_url) -OutFile ./extIface.exe
Invoke-WebRequest -Uri (((Invoke-RestMethod -Uri "https://api.github.com/repos/mirage335-colossus/extendedInterface/releases" -Headers @{Authorization = "Bearer ${{ secrets.GITHUB_TOKEN }}" }) | Where-Object { $_.name -eq "internal" } | ForEach-Object { $_.assets } | Where-Object {$_.name -eq "extIface.exe"} | Sort-Object -Property {$_.browser_download_url -replace '\D+(\d+)-\d+$', '$1'} -Descending | Select-Object -First 1).browser_download_url) -OutFile ./extIface.exe
#start "Installer" /wait "extIface" /S
Start-Process -FilePath ".\extIface.exe" -ArgumentList "/wait", ".\extIface.exe", "/S" -NoNewWindow -Wait
- name: _getMinimal_cloud
shell: pwsh
timeout-minutes: 180
run: |
$ErrorActionPreference="SilentlyContinue"
$ErrorActionPreference = "Continue"
Set-MpPreference -DisableRealtimeMonitoring $true
date > /wasHere.log
pwd >> /wasHere.log
cat /wasHere.log
choco install qalculate -y
choco install dos2unix -y
choco install nmap -y
git config --global core.autocrlf input
git config --global core.eol lf
choco install 7zip.install -y
choco install rclone -y
- uses: actions/checkout@v2
- name: statement! ls
shell: pwsh
run: |
ls /
ls
Get-CimInstance -ClassName Win32_LogicalDisk | Select-Object -Property DeviceID,@{'Name' = 'FreeSpace (GB)'
Expression= { [int]($_.FreeSpace / 1GB) }}
- name: _test
shell: pwsh
timeout-minutes: 240
run: |
#Set-Item -Path Env:devfast -Value ("true")
cd C:\core\infrastructure\ubiquitous_bash\
./_test | tee /_test
$SEL = cat /_test | Select-String -Pattern 'FAIL' -CaseSensitive -SimpleMatch
if ($SEL -ne $null)
{
cat /bin/false/pwsh
}
else
{
echo true | Out-Null
}
test_ubcp_dump_mswLatest:
runs-on: windows-latest
#runs-on: windows-2022
#runs-on: windows-2019
steps:
#- name: write! secrets
#id: secret-file1
#run: |
#$secretFile = "/rclone.conf"
#$encodedBytes = [System.Convert]::FromBase64String($env:rclone_limited_conf_base64)
#Set-Content $secretFile -Value $encodedBytes -AsByteStream
#shell: pwsh
#env:
#rclone_limited_conf_base64: ${{ secrets.rclone_limited_conf_base64 }}
- name: _getCore_ubcp-extendedInterface
shell: pwsh
timeout-minutes: 180
run: |
mkdir /core
mkdir /core/infrastructure
cd /core/infrastructure
Invoke-WebRequest -Uri ((Invoke-RestMethod -Uri "https://api.github.com/repos/mirage335-colossus/extendedInterface/releases/latest" -Headers @{Authorization = "Bearer ${{ secrets.GITHUB_TOKEN }}" }).assets | Where-Object {$_.name -eq "extIface.exe"}).browser_download_url -OutFile ./extIface.exe
#start "Installer" /wait "extIface" /S
Start-Process -FilePath ".\extIface.exe" -ArgumentList "/wait", ".\extIface.exe", "/S" -NoNewWindow -Wait
- name: _getMinimal_cloud
shell: pwsh
timeout-minutes: 180
run: |
$ErrorActionPreference="SilentlyContinue"
$ErrorActionPreference = "Continue"
Set-MpPreference -DisableRealtimeMonitoring $true
date > /wasHere.log
pwd >> /wasHere.log
cat /wasHere.log
choco install qalculate -y
choco install dos2unix -y
choco install nmap -y
git config --global core.autocrlf input
git config --global core.eol lf
choco install 7zip.install -y
choco install rclone -y
- uses: actions/checkout@v2
- name: statement! ls
shell: pwsh
run: |
ls /
ls
Get-CimInstance -ClassName Win32_LogicalDisk | Select-Object -Property DeviceID,@{'Name' = 'FreeSpace (GB)'
Expression= { [int]($_.FreeSpace / 1GB) }}
- name: _test
shell: pwsh
timeout-minutes: 240
run: |
#Set-Item -Path Env:devfast -Value ("true")
./_test | tee /_test.log
$SEL = cat /_test.log | Select-String -Pattern 'FAIL' -CaseSensitive -SimpleMatch
if ($SEL -ne $null)
{
cat /bin/false/pwsh
}
else
{
echo true | Out-Null
}
test_ubcp_dump_mswLTS:
#runs-on: windows-latest
#runs-on: windows-2022
runs-on: windows-2019
steps:
#- name: write! secrets
#id: secret-file1
#run: |
#$secretFile = "/rclone.conf"
#$encodedBytes = [System.Convert]::FromBase64String($env:rclone_limited_conf_base64)
#Set-Content $secretFile -Value $encodedBytes -AsByteStream
#shell: pwsh
#env:
#rclone_limited_conf_base64: ${{ secrets.rclone_limited_conf_base64 }}
- name: _getCore_ubcp
shell: pwsh
timeout-minutes: 180
run: |
mkdir /core
mkdir /core/infrastructure
cd /core/infrastructure
Invoke-WebRequest -Uri ((Invoke-RestMethod -Uri "https://api.github.com/repos/mirage335-colossus/extendedInterface/releases/latest" -Headers @{Authorization = "Bearer ${{ secrets.GITHUB_TOKEN }}" }).assets | Where-Object {$_.name -eq "extIface.exe"}).browser_download_url -OutFile ./extIface.exe
#start "Installer" /wait "extIface" /S
Start-Process -FilePath ".\extIface.exe" -ArgumentList "/wait", ".\extIface.exe", "/S" -NoNewWindow -Wait
- name: _getMinimal_cloud
shell: pwsh
timeout-minutes: 180
run: |
$ErrorActionPreference="SilentlyContinue"
$ErrorActionPreference = "Continue"
Set-MpPreference -DisableRealtimeMonitoring $true
date > /wasHere.log
pwd >> /wasHere.log
cat /wasHere.log
choco install qalculate -y
choco install dos2unix -y
choco install nmap -y
git config --global core.autocrlf input
git config --global core.eol lf
choco install 7zip.install -y
choco install rclone -y
- uses: actions/checkout@v2
- name: statement! ls
shell: pwsh
run: |
ls /
ls
Get-CimInstance -ClassName Win32_LogicalDisk | Select-Object -Property DeviceID,@{'Name' = 'FreeSpace (GB)'
Expression= { [int]($_.FreeSpace / 1GB) }}
- name: _test
shell: pwsh
timeout-minutes: 240
run: |
#Set-Item -Path Env:devfast -Value ("true")
./_test | tee /_test.log
$SEL = cat /_test.log | Select-String -Pattern 'FAIL' -CaseSensitive -SimpleMatch
if ($SEL -ne $null)
{
cat /bin/false/pwsh
}
else
{
echo true | Out-Null
}