Skip to content

Commit 06437bd

Browse files
committed
Arm the workflow
1 parent 88c7bfe commit 06437bd

File tree

1 file changed

+71
-3
lines changed

1 file changed

+71
-3
lines changed

.github/workflows/test-installers.yml

Lines changed: 71 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,68 @@ on:
2121

2222
jobs:
2323
test:
24-
name: Dummy action
25-
runs-on: ubuntu-latest
24+
name: '${{ matrix.test }} test ${{ matrix.format }} on ${{ matrix.platform.name }} (${{ matrix.platform.arch }})'
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
test:
29+
- time-to-first-query
30+
- auto-update-from
31+
platform:
32+
- name: windows
33+
arch: x64
34+
runs-on: windows-latest
35+
- name: osx
36+
arch: x64
37+
runs-on: macos-13
38+
- name: osx
39+
arch: arm64
40+
runs-on: macos-latest
41+
- name: linux
42+
arch: x64
43+
runs-on: ubuntu-latest
44+
test_command_prefix: "xvfb"
45+
include:
46+
# Windows formats
47+
- platform.name: windows
48+
format: setup
49+
- platform.name: windows
50+
format: msi
51+
- platform.name: windows
52+
format: zip
53+
54+
# OSX formats
55+
- platform.name: osx
56+
format: dmg
57+
- platform.name: osx
58+
format: zip
59+
60+
# Linux formats
61+
- platform.name: linux
62+
format: deb
63+
- platform.name: linux
64+
format: tar
65+
- platform.name: linux
66+
format: rpm
67+
68+
# Hadron platform names pr OS
69+
- platform.name: windows
70+
hadron-platform: win32
71+
- platform.name: osx
72+
hadron-platform: darwin
73+
- platform.name: linux
74+
hadron-platform: linux
75+
76+
exclude:
77+
# Temporarily disable running on Windows, Ubuntu
78+
- platform.name: windows
79+
- platform.name: linux
80+
# Temporarily disable running on osx zip installer
81+
- platform.name: osx
82+
format: zip
83+
# Temporarily disable running the auto-update-from
84+
- test: auto-update-from
85+
runs-on: ${{ matrix.platform.runs-on }}
2686
steps:
2787
- name: Checkout
2888
uses: actions/checkout@v2
@@ -33,4 +93,12 @@ jobs:
3393
cache: "npm"
3494
- name: Install dependencies
3595
run: npm ci
36-
96+
- name: Run tests
97+
env:
98+
EVERGREEN_BUCKET_NAME: ${{ inputs.bucket_name }}
99+
EVERGREEN_BUCKET_KEY_PREFIX: ${{ inputs.bucket_key_prefix }}
100+
DEV_VERSION_IDENTIFIER: ${{ inputs.version }}
101+
PLATFORM: ${{ matrix.hadron-platform }}
102+
ARCH: ${{ matrix.platform.arch }}
103+
working-directory: packages/compass-smoke-tests
104+
run: npm start -- --package ${{ matrix.platform.name }}_${{ matrix.format }} --tests ${{ matrix.test }}

0 commit comments

Comments
 (0)