Skip to content

Commit bb27eed

Browse files
committed
test: enforce phase 1 installer acceptance
1 parent c6cf8ac commit bb27eed

4 files changed

Lines changed: 474 additions & 260 deletions

File tree

.github/workflows/phase-acceptance.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
installer-locale:
1515
name: Installer locale / ${{ matrix.os }}
1616
runs-on: ${{ matrix.os }}
17+
timeout-minutes: 45
1718
strategy:
1819
fail-fast: false
1920
matrix:
@@ -52,13 +53,18 @@ jobs:
5253
if ($errors.Count) { throw ($errors | Out-String) }
5354
5455
- name: Run installer fault and locale acceptance
56+
env:
57+
CONTEXA_LIFECYCLE_REPEATS: '20'
58+
CONTEXA_FAULT_REPEATS: '5'
5559
run: >-
5660
node -e "const f=require('fs'),c=require('child_process');const r=c.spawnSync(process.execPath,['--test','test/installer-runtime.test.js'],{encoding:'utf8',windowsHide:true});const out=(r.stdout||'')+(r.stderr||'');f.writeFileSync('installer-runtime.tap',out);process.stdout.write(out);process.exit(r.status===null?1:r.status)"
5761
5862
- name: Run the full installer fault matrix with PowerShell 7
5963
if: runner.os == 'Windows'
6064
env:
6165
CONTEXA_TEST_POWERSHELL: pwsh.exe
66+
CONTEXA_LIFECYCLE_REPEATS: '20'
67+
CONTEXA_FAULT_REPEATS: '5'
6268
run: >-
6369
node -e "const f=require('fs'),c=require('child_process');const r=c.spawnSync(process.execPath,['--test','test/installer-runtime.test.js'],{encoding:'utf8',windowsHide:true});const out=(r.stdout||'')+(r.stderr||'');f.writeFileSync('installer-runtime-pwsh.tap',out);process.stdout.write(out);process.exit(r.status===null?1:r.status)"
6470
@@ -122,6 +128,7 @@ jobs:
122128
CONTEXA_SKIP_PATH_UPDATE: '1'
123129
run: |
124130
set -euo pipefail
131+
test "$(id -u)" -ne 0
125132
expected_current="${CONTEXA_PHASE_TAG#v}"
126133
expected_previous="${CONTEXA_PREVIOUS_TAG#v}"
127134
CONTEXA_VERSION="$CONTEXA_PREVIOUS_TAG" sh ./install.sh

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "install-ctxa",
33
"private": true,
4-
"version": "0.1.2-phase5.1",
4+
"version": "0.1.3",
55
"scripts": {
66
"test": "node --test test/*.test.js"
77
}

0 commit comments

Comments
 (0)