-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 1.47 KB
/
integration-test.yml
File metadata and controls
55 lines (48 loc) · 1.47 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
name: Integration Test
run-name: "Integration Test (${{ inputs.fmsgd_ref }})"
on:
pull_request:
branches: [main]
workflow_dispatch:
inputs:
fmsgd_ref:
description: 'fmsgd branch/ref to test'
required: false
default: 'main'
fmsgid_ref:
description: 'fmsgid branch/ref to test'
required: false
default: 'main'
fmsg_webapi_ref:
description: 'fmsg-webapi branch/ref to test'
required: false
default: 'main'
fmsg_cli_ref:
description: 'fmsg-cli branch/ref to test'
required: false
default: 'main'
jobs:
integration-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "stable"
- name: Run integration tests
run: bash test/run-tests.sh
env:
FMSGD_REF: ${{ github.event.inputs.fmsgd_ref }}
FMSGID_REF: ${{ github.event.inputs.fmsgid_ref }}
FMSG_WEBAPI_REF: ${{ github.event.inputs.fmsg_webapi_ref }}
FMSG_CLI_REF: ${{ github.event.inputs.fmsg_cli_ref }}
- name: Upload integration logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: integration-test-logs
path: test/.logs/
if-no-files-found: ignore
- name: Cleanup
if: always()
run: bash test/run-tests.sh cleanup