-
Notifications
You must be signed in to change notification settings - Fork 1.1k
72 lines (66 loc) · 1.92 KB
/
integration-jobs.yml
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
name: Integration
on:
pull_request:
paths-ignore:
- 'README.md'
- '.editorconfig'
push:
paths-ignore:
- 'README.md'
- '.editorconfig'
branches:
- main
- '[0-9]+.[0-9]+'
- '[0-9]+.x'
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
jobs:
integration-tests:
name: Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
stack_version: [
'8.0.1',
'8.1.3',
'8.2.3',
'8.3.3',
'8.4.3',
'8.5.3',
'8.6.2',
'8.7.1',
'8.8.0',
'8.9.0-SNAPSHOT',
'latest-8'
]
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-dotnet@v4
with:
global-json-file: 'global.json'
- uses: actions/cache@v3
with:
path: ${{ github.workspace }}/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.[cf]sproj*', '**/*.Build.props') }}
restore-keys: |
${{ runner.os }}-nuget-
- uses: actions/cache@v3
with:
path: ~/.local/share/ElasticManaged/elasticsearch-${{ matrix.stack_version }}
key: ${{ runner.os }}-elastic-managed-${{ matrix.stack_version }}
restore-keys: |
${{ runner.os }}-elastic-managed-
- run: "./build.sh integrate ${{ matrix.stack_version }} random:test_only_one --report"
name: ${{ matrix.stack_version }}
- name: Results ${{ matrix.stack_version }}
# only report on if the previous run failed, otherwise this ends up being too noisy
if: ${{ failure() }}
uses: mikepenz/action-junit-report@v2
with:
report_paths: 'build/output/junit-*.xml'
github_token: ${{ secrets.GITHUB_TOKEN }}
fail_on_failure: true
require_tests: true
check_name: ${{ matrix.stack_version }}