Skip to content

Commit

Permalink
ci: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
phnx47 committed Jun 23, 2024
1 parent 8cd6786 commit 124cd1a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,11 @@ jobs:
with:
fetch-depth: 0

- name: Restore
run: dotnet restore

- name: Build
run: dotnet build --no-restore -c Release /p:ContinuousIntegrationBuild=true
run: dotnet build -c Release -p:ContinuousIntegrationBuild=true

- name: Run tests
run: dotnet test --no-build -c Release /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
run: dotnet test --no-build -c Release -p:CollectCoverage=true -e:CoverletOutputFormat=opencover

- name: Publish to Codecov
uses: codecov/codecov-action@v4
Expand All @@ -38,6 +35,7 @@ jobs:

- name: Set Dev version
if: github.ref == 'refs/heads/main'
shell: bash
run: |
version="$(git describe --long --tags | sed 's/^v//;0,/-/s//./')"
if [ -z "${version}" ]; then
Expand All @@ -47,6 +45,7 @@ jobs:
- name: Set Release version
if: startsWith(github.ref, 'refs/tags/v')
shell: bash
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV

- name: Pack NuGet artifacts
Expand Down

0 comments on commit 124cd1a

Please sign in to comment.