Repository navigation
Merge pull request #46 from teesofttech/copilot/update-readme-file #23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| workflow_dispatch: | |
| inputs: | |
| module: | |
| description: 'Module being validated, for example Workbooks and Views' | |
| required: false | |
| type: string | |
| jobs: | |
| build-and-test: | |
| name: Build & Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - name: Module gate context | |
| if: ${{ github.event_name == 'workflow_dispatch' && inputs.module != '' }} | |
| run: echo "Validating module gate for ${{ inputs.module }}" | |
| - name: Restore | |
| run: dotnet restore TableauSharp.sln | |
| - name: Build | |
| run: dotnet build TableauSharp.sln --no-restore -c Release | |
| - name: Test | |
| run: > | |
| dotnet test TableauSharp.sln | |
| --no-build | |
| -c Release | |
| --verbosity normal | |
| --logger "trx;LogFileName=test-results.trx" | |
| --collect:"XPlat Code Coverage" | |
| - name: Pack | |
| run: > | |
| dotnet pack src/TableauSharp/TableauSharp.csproj | |
| --no-build | |
| -c Release | |
| -p:ContinuousIntegrationBuild=true | |
| -p:PackageVersion=0.0.0-ci.${{ github.run_number }} | |
| -o ./artifacts | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results | |
| path: '**/TestResults/**' | |
| - name: Upload coverage | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage | |
| path: '**/TestResults/**/coverage.cobertura.xml' | |
| - name: Upload packages | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: nuget-packages | |
| path: ./artifacts/ |