Skip to content

Epic: code refactoring and small tweaks (#6) #52

Epic: code refactoring and small tweaks (#6)

Epic: code refactoring and small tweaks (#6) #52

Workflow file for this run

name: .NET Core
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.x.x
- name: Build with dotnet
run: dotnet build -c Release
- name: Run tests with coverage
env:
STORAGE_KEY: ${{ secrets.STORAGE_KEY_TOKEN }}
STORAGE_SECRET: ${{ secrets.STORAGE_SECRET_TOKEN }}
STORAGE_BUCKET: ${{ secrets.STORAGE_BUCKET_TOKEN }}
STORAGE_ENDPOINT: ${{ secrets.STORAGE_ENDPOINT_TOKEN }}
STORAGE_HTTPS: "true"
STORAGE_PORT: "null"
run: |
cd ./src/Storage.Tests/
dotnet test -c Release --no-build /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=opencover /p:Exclude="[*]Storage.Benchmark.*"
- name: Publish coverage report
if: startsWith(matrix.os, 'ubuntu')
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}