microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
.github/workflows/build-test-lint.yml
31lines · modecode
| 1 | name: Build & Test & Lint |
| 2 | |
| 3 | on: |
| 4 | workflow_call: |
| 5 | workflow_dispatch: |
| 6 | pull_request: |
| 7 | branches: ['main'] |
| 8 | push: |
| 9 | branches: ['main'] |
| 10 | |
| 11 | permissions: read-all |
| 12 | |
| 13 | jobs: |
| 14 | build-test-lint: |
| 15 | name: Build & Test & Lint |
| 16 | runs-on: ubuntu-latest |
| 17 | permissions: |
| 18 | contents: read |
| 19 | steps: |
| 20 | - name: Checkout |
| 21 | uses: actions/checkout@v4 |
| 22 | - name: Setup .NET |
| 23 | uses: actions/setup-dotnet@v4 |
| 24 | with: |
| 25 | dotnet-version: '9.0' |
| 26 | - name: Restore |
| 27 | run: dotnet restore |
| 28 | - name: Build |
| 29 | run: dotnet build --no-restore --configuration Release |
| 30 | - name: Test |
| 31 | run: dotnet test --no-restore --verbosity normal --logger trx --configuration Release |