Merge branch 'release/1.7.2' into develop #306
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: CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dotnet: [ '6.0.x' ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: ${{ matrix.dotnet-version }} | |
- name: Install dependencies | |
run: dotnet restore src | |
- name: Build | |
run: dotnet build src --configuration Release --no-restore | |
tests: | |
needs: [build] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dotnet: [ '6.0.x' ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: ${{ matrix.dotnet-version }} | |
- name: Install dependencies | |
run: dotnet restore src | |
- name: Test | |
run: dotnet test --collect:"XPlat Code Coverage" --settings:src/DotNetStac.Test/coverlet.runsettings --results-directory:TestResults src | |
- uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | |
directory: TestResults | |
fail_ci_if_error: false # optional (default = false) | |
verbose: true # optional (default = false) | |
flags: unittests | |
name: ${{ matrix.platform }}-${{ matrix.dotnet-version }} | |
- name: Upload test results | |
uses: actions/upload-artifact@v2 | |
with: | |
name: dotnet-results #-${{ matrix.dotnet-version }} | |
path: TestResults #-${{ matrix.dotnet-version }} | |
# Use always() to always run this step to publish test results when there are test failures | |
if: ${{ always() }} | |
# Publish generated site using GitHub Pages | |
- name: Install dotnet format | |
run: dotnet tool update -g dotnet-format | |
- name: Check Format | |
run: dotnet format --verify-no-changes --severity warn src/ | |