Repository navigation
Expand file tree
/
Copy pathinstaller-smoke.yml
More file actions
54 lines (48 loc) · 1.53 KB
/
Copy pathinstaller-smoke.yml
File metadata and controls
54 lines (48 loc) · 1.53 KB
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
name: Installer smoke test
on:
pull_request:
paths:
- install.sh
- .github/workflows/installer-smoke.yml
workflow_dispatch:
permissions:
contents: read
jobs:
installer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
# Replace the binary path and smoke command with your installer's contract.
- name: Prepare installer and installation check
shell: bash
run: |
{
printf '#!/bin/bash\n(\n'
cat install.sh
printf '\n)\ninstaller_status=$?\n[ "$installer_status" -eq 0 ] || exit "$installer_status"\n'
cat <<'EOF'
binary="$HOME/.local/bin/mytool"
test -x "$binary" || { echo "Installer did not create $binary" >&2; exit 1; }
"$binary" --version
EOF
} > installer-smoke.sh
- name: Install and verify in each distribution
uses: Mresyzz/opsscript-gate@v0.9.4
with:
script-path: installer-smoke.sh
shell: auto
matrix: debian:12-slim,ubuntu:22.04,ubuntu:24.04,alpine:3.20
network: bridge
packages: bash,curl,ca-certificates,tar
timeout: '120'
format: json
output: reports/installer-smoke.json
- name: Save report, including failed installs
if: always()
uses: actions/upload-artifact@v4
with:
name: installer-smoke
path: reports/installer-smoke.json
if-no-files-found: ignore