-
-
Notifications
You must be signed in to change notification settings - Fork 39
64 lines (56 loc) · 1.68 KB
/
Copy pathintegration.yml
File metadata and controls
64 lines (56 loc) · 1.68 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
# Mercury CI Pipeline - Integration Tests
#
# Triggers:
# - Automatically on every Pull Request
# - Manually via workflow_dispatch
# - Automatically on every push to mercuryv2
#
# Runs Go startup/control integration tests on Linux amd64 only.
name: Integration
on:
pull_request:
branches: [mercuryv2]
push:
branches: [mercuryv2]
workflow_dispatch:
inputs:
branch:
description: 'Target branch | default = "mercuryv2"'
required: false
type: string
default: 'mercuryv2'
jobs:
integration-tests:
name: Integration Tests (Linux amd64, Debian 13)
runs-on: ubuntu-latest
container: debian:trixie
timeout-minutes: 30
steps:
- name: Install build dependencies
run: |
apt-get update
apt-get install -y --no-install-recommends \
ca-certificates \
build-essential \
git \
openssh-client \
libpulse-dev \
libasound2-dev \
libhamlib-dev \
pkg-config \
golang-go
- name: Checkout
uses: actions/checkout@v4
with:
# Honour the dispatch input; it was advertised but ignored, so a manual
# run against another branch silently tested mercuryv2. github.ref keeps
# the automatic behaviour unchanged (PR merge ref / pushed branch).
ref: ${{ github.event.inputs.branch || github.ref }}
- name: Git Safe Directory
run: git config --global --add safe.directory /__w/mercury/mercury
- name: Build Mercury
shell: bash
run: make
- name: Run Integration Tests
shell: bash
run: make integration-test