Skip to content

Fixes #34

Fixes #34 #35

Workflow file for this run

name: CI Build
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: Validate Build
env:
solution-path: './src/NetCore Utilities Email.sln'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Ensure .NET Installed
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Install GitVersion
run: dotnet tool install --global GitVersion.Tool
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/[email protected]
with:
useConfigFile: true
- name: Restore Packages
run: dotnet restore "${{ env.solution-path }}"
- name: Build
run: dotnet build "${{ env.solution-path }}" --no-restore --configuration Release -p:version=${{ steps.gitversion.outputs.majorMinorPatch }}
- name: Test
run: dotnet test "${{ env.solution-path }}" --no-build --configuration Release --collect "XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover --logger "trx;LogFileName=unittests.trx"
- name: Push Coverage to Codacy
shell: bash

Check failure on line 45 in .github/workflows/ci-build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci-build.yml

Invalid workflow file

You have an error in your yaml syntax on line 45
env:
CODACY_ORGANIZATION_PROVIDER: ${{ secrets.CODACY_ORGANIZATION_PROVIDER }}
CODACY_USERNAME: ${{ secrets.CODACY_USERNAME }}
CODACY_PROJECT_NAME: ${{ secrets.CODACY_PROJECT_NAME }}
CODACY_API_TOKEN: ${{ secrets.CODACY_API_TOKEN }}
run: |
bash <(curl -Ls https://coverage.codacy.com/get.sh) report $(find . -name '*.opencover.xml' -printf '-r %p ')