[Backport 1.x] Upgrade FSharp.Data, BenchMarkDotNet & AWSSDK.Core #789
Workflow file for this run
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
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' | |
- 'dev-*' | |
jobs: | |
unit-tests: | |
name: Unit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
5.0.x | |
6.0.x | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.?sproj') }} | |
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 | |
# This is the only way to get test reports out from GitHub Actions | |
# TODO remove this before release | |
- uses: actions/upload-artifact@v2 | |
if: ${{ always() }} | |
with: | |
name: unit-test-report | |
path: build/output/* | |
# 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@v3 | |
with: | |
dotnet-version: | | |
5.0.x | |
6.0.x | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.?sproj') }} | |
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 | |
# This is the only way to get test reports out from GitHub Actions | |
# TODO remove this before release | |
- uses: actions/upload-artifact@v2 | |
if: ${{ always() }} | |
with: | |
name: canary-test-report | |
path: build/output/* | |