Skip to content

Test Installers

Test Installers #3

Workflow file for this run

name: Test Installers
permissions:
contents: read
on:
workflow_dispatch:
inputs:
bucket_name:
type: string
description: 'S3 bucket to download installers from'
required: true
bucket_key_prefix:
type: string
description: 'S3 bucket key prefix to download installers from'
required: true
version:
type: string
description: 'Version of the installer to download'
required: true
jobs:
test:
name: '${{ matrix.test }} test ${{ matrix.format }} on ${{ matrix.platform.name }} (${{ matrix.platform.arch }})'
strategy:
fail-fast: false
matrix:
test:
- time-to-first-query
- auto-update-from
platform:
- name: windows
arch: x64
runs-on: windows-latest
- name: osx
arch: x64
runs-on: macos-13
- name: osx
arch: arm64
runs-on: macos-latest
- name: linux
arch: x64
runs-on: ubuntu-latest
test_command_prefix: "xvfb"
include:
# Windows formats
- platform.name: windows
format: setup
- platform.name: windows
format: msi
- platform.name: windows
format: zip
# OSX formats
- platform.name: osx
format: dmg
- platform.name: osx
format: zip
# Linux formats
- platform.name: linux
format: deb
- platform.name: linux
format: tar
- platform.name: linux
format: rpm
# Hadron platform names pr OS
- platform.name: windows
hadron-platform: win32
- platform.name: osx
hadron-platform: darwin
- platform.name: linux
hadron-platform: linux
exclude:
# Temporarily disable running on Windows, Ubuntu
- platform:
- name: windows
- platform:
- name: linux
# Temporarily disable running the auto-update-from
- test: auto-update-from
runs-on: ${{ matrix.platform.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run tests
env:
EVERGREEN_BUCKET_NAME: ${{ inputs.bucket_name }}
EVERGREEN_BUCKET_KEY_PREFIX: ${{ inputs.bucket_key_prefix }}
DEV_VERSION_IDENTIFIER: ${{ inputs.version }}
PLATFORM: ${{ matrix.hadron-platform }}
ARCH: ${{ matrix.platform.arch }}
working-directory: packages/compass-smoke-tests
run: npm start -- --package ${{ matrix.platform.name }}_${{ matrix.format }} --tests ${{ matrix.test }}