Skip to content

Add BlurHashSharp.ImageSharp project and throw on invalid component c… #126

Add BlurHashSharp.ImageSharp project and throw on invalid component c…

Add BlurHashSharp.ImageSharp project and throw on invalid component c… #126

Workflow file for this run

name: .NET
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal --filter 'BlurHashSharp.Tests' --collect:"XPlat Code Coverage" --results-directory coverage
- name: Upload coverage to Codecov
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
run: bash <(curl -s https://codecov.io/bash)