diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f35f55..fcc468a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 @@ -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