Skip to content

Allow manual dispatch #90

Allow manual dispatch

Allow manual dispatch #90

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

`push workflow_dispatch` is not a valid event name
on:
push
workflow_dispatch
env:
CONFIGURATION: Release
jobs:
Build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install CodeCov
run: dotnet tool install -g codecov.tool
- name: Build
run: dotnet build -c ${{ env.CONFIGURATION }}
- name: Pack
run: dotnet pack -c ${{ env.CONFIGURATION }} --property:PackageOutputPath=../../pkgs
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: pkgs
path: |
./pkgs/*.nupkg
./pkgs/*.snupkg
- name: Test
run: dotnet test -c ${{ env.CONFIGURATION }} --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=OpenCover /p:CoverletOutput=./Coverage.xml
- name: Publish Coverage
uses: codecov/codecov-action@v3
with:
files: '**/*/Coverage.*.xml'