Skip to content

Update Elastic.Transport to 0.5.5 #3982

Update Elastic.Transport to 0.5.5

Update Elastic.Transport to 0.5.5 #3982

Workflow file for this run

name: Tests
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:
unit-tests:
name: Unit
runs-on: ubuntu-latest
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-
- 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@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-
- 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
name: publish canary packages to feedz.io
if: github.event_name == 'push' && startswith(github.ref, 'refs/heads')