-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport 7.12] Unify most of our CI under github actions (#5379)
Co-authored-by: Martijn Laarman <[email protected]>
- Loading branch information
1 parent
fba2257
commit e999780
Showing
35 changed files
with
14,791 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"version": 1, | ||
"dependencies": { | ||
".NETCoreApp,Version=v5.0": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Integration | ||
|
||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'README.md' | ||
- '.editorconfig' | ||
push: | ||
paths-ignore: | ||
- 'README.md' | ||
- '.editorconfig' | ||
branches: | ||
- main | ||
- master | ||
- '[0-9]+.[0-9]+' | ||
- '[0-9]+.x' | ||
|
||
jobs: | ||
integration-tests: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
stack_version: [ | ||
'7.0.0', | ||
'7.1.0', | ||
'7.2.0', | ||
'7.3.0', | ||
'7.4.0', | ||
'7.5.0', | ||
'7.6.0', | ||
'7.7.0', | ||
'7.8.0', | ||
'7.9.0', | ||
'7.10.0', | ||
'7.11.0', | ||
'7.12.0-SNAPSHOT', | ||
'latest-7' | ||
] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '5.0.100' | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.nuget/packages | ||
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-nuget- | ||
- uses: actions/cache@v2 | ||
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 }} readonly,writable 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 }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Stale | ||
|
||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'README.md' | ||
- '.editorconfig' | ||
push: | ||
paths-ignore: | ||
- 'README.md' | ||
- '.editorconfig' | ||
branches: | ||
- main | ||
- master | ||
- '[0-9]+.[0-9]+' | ||
- '[0-9]+.x' | ||
|
||
jobs: | ||
unit-tests: | ||
name: Documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '5.0.100' | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.nuget/packages | ||
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-nuget- | ||
- run: ./build.sh documentation | ||
name: Build docs | ||
|
||
- run: | | ||
if [ -n "$(git status --porcelain)" ]; then echo Error: changes found after running documentation; git diff; git status; exit 1; fi | ||
name: 'Ensure no stale docs' | ||
if: github.event_name == 'pull_request' && startswith(github.ref, 'refs/heads') && github.repository == 'elastic/elasticsearch-net' | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
name: Tests | ||
|
||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'README.md' | ||
- '.editorconfig' | ||
push: | ||
paths-ignore: | ||
- 'README.md' | ||
- '.editorconfig' | ||
branches: | ||
- main | ||
- master | ||
- '[0-9]+.[0-9]+' | ||
- '[0-9]+.x' | ||
|
||
jobs: | ||
unit-tests: | ||
name: Unit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '5.0.100' | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.nuget/packages | ||
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-nuget- | ||
- run: ./build.sh test --report | ||
name: Test | ||
- name: Test Results | ||
if: always() | ||
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: Unit Test Results | ||
|
||
# Packages nuget packages first and then uses the nuget packages to test | ||
# Also builds versioned nuget packages | ||
canary-tests: | ||
name: Canary | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '5.0.100' | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.nuget/packages | ||
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-nuget- | ||
- run: ./build.sh canary --report | ||
name: Test | ||
- name: Test Results | ||
if: always() | ||
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: Canary Test Results | ||
|
||
# Github packages requires authentication, this is likely going away in the future so for now we publish to feedz.io | ||
# Only runs on builds on heads | ||
- run: dotnet nuget push 'build/output/*.nupkg' -k ${{secrets.FEEDZ_IO_API_KEY}} -s https://f.feedz.io/elastic/all/nuget/index.json --skip-duplicate --no-symbols true | ||
name: publish canary packages to feedz.io | ||
if: github.event_name == 'push' && startswith(github.ref, 'refs/heads') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.