removed Stars dep #37
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 workflow will build a .NET project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
name: build | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
- name: Restore dependencies | |
run: dotnet restore src/ | |
- name: Build | |
run: dotnet build --no-restore src/ | |
- name: Test | |
run: dotnet test --collect:"XPlat Code Coverage" --settings:src/Stac.Api.Tests/coverlet.runsettings --results-directory:TestResults src | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
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: 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() }} |