-
Notifications
You must be signed in to change notification settings - Fork 62
85 lines (68 loc) · 1.92 KB
/
test.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: test
on:
push:
branches:
- main
- 1.*
paths-ignore:
- '*.md'
- '*.asciidoc'
- 'docs/**'
pull_request:
paths-ignore:
- '*.md'
- '*.asciidoc'
- 'docs/**'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
env:
ELASTIC_STACK_VERSION: '8.4.0'
jobs:
test-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Bootstrap Action Workspace
uses: ./.github/workflows/bootstrap
- uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- uses: actions/cache@v4
with:
path: ~\AppData\Local\ElasticManaged\elasticsearch-${{ env.ELASTIC_STACK_VERSION }}
key: ${{ runner.os }}-elastic-managed-${{ env.ELASTIC_STACK_VERSION }}
- name: Build the solution
run: build.bat build -s true
shell: cmd
- name: Run tests
run: build.bat test -s true
shell: cmd
- name: Run integration tests
run: build.bat integrate -s true
shell: cmd
- name: Store test results
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: test-results-windows
path: build/output/junit-*.xml
test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Bootstrap Action Workspace
uses: ./.github/workflows/bootstrap
- name: Run release -c false
run: ./build.sh release -c false --token ${{ secrets.GITHUB_TOKEN }}
- name: Store test results
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: test-results-linux
path: build/output/junit-*.xml