Repository navigation
87 lines (83 loc) · 2.34 KB
/
Copy pathinstall-test.yml
File metadata and controls
87 lines (83 loc) · 2.34 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
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
name: Install Test
on:
pull_request:
branches: [main]
paths-ignore:
- '**/*.md'
- 'docs/**'
- 'LICENSE*'
- 'NOTICE*'
- '.gitignore'
- '.github/ISSUE_TEMPLATE/**'
- '.github/PULL_REQUEST_TEMPLATE/**'
- '.github/CODEOWNERS'
push:
branches: [main]
paths-ignore:
- '**/*.md'
- 'docs/**'
- 'LICENSE*'
- 'NOTICE*'
- '.gitignore'
- '.github/ISSUE_TEMPLATE/**'
- '.github/PULL_REQUEST_TEMPLATE/**'
- '.github/CODEOWNERS'
workflow_dispatch:
permissions:
contents: read
jobs:
installer-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: '3.12'
- run: python -m pip install PyYAML==6.0.3
- run: python -m unittest discover -s tests -v
install:
name: Install (${{ matrix.runner }})
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- runner: ubuntu-latest
binary_arch: x86-64
- runner: ubuntu-24.04-arm
binary_arch: aarch64
- runner: macos-latest
binary_arch: arm64
- runner: macos-26-intel
binary_arch: x86_64
- runner: windows-latest
binary_arch: x86-64
- runner: windows-11-arm
binary_arch: Aarch64|ARM64
steps:
- uses: actions/checkout@v7
- name: Install and run info
uses: ./
with:
command: info
- name: Verify installed architecture and PATH
shell: bash
env:
EXPECTED_ARCH: ${{ matrix.binary_arch }}
run: |
binary=$(command -v stackql-deploy)
if [ "$RUNNER_OS" = Windows ]; then binary="${binary%.exe}.exe"; fi
file "$binary"
file -b "$binary" | grep -E "$EXPECTED_ARCH"
stackql-deploy --version
git hash-object "$binary" > "$RUNNER_TEMP/stackql-deploy.hash"
- name: Reuse installed binary
uses: ./
with:
command: info
- name: Verify binary is unchanged
shell: bash
run: |
binary=$(command -v stackql-deploy)
if [ "$RUNNER_OS" = Windows ]; then binary="${binary%.exe}.exe"; fi
git hash-object "$binary" | cmp - "$RUNNER_TEMP/stackql-deploy.hash"