microsoft/teams.net

Public

mirrored from https://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
feat/msal

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/build-test-lint.yml

47lines · modecode

1name: Build & Test & Lint
2
3on:
4 workflow_call:
5 workflow_dispatch:
6 pull_request:
7 branches: ['main']
8 push:
9 branches: ['main']
10
11permissions: read-all
12
13jobs:
14 build-test-lint:
15 name: Build & Test & Lint
16 runs-on: ubuntu-latest
17 permissions:
18 contents: read
19
20 steps:
21 - name: Checkout
22 uses: actions/checkout@v4
23 with:
24 fetch-depth: 0
25
26 - name: Setup .NET
27 uses: actions/setup-dotnet@v4
28 with:
29 dotnet-version: '9.0'
30
31 - name: Restore
32 run: dotnet restore
33
34 - name: Build
35 run: dotnet build --no-restore --configuration Release
36
37 - name: Test
38 run: dotnet test --no-restore --verbosity normal --logger trx --configuration Release
39
40 - name: Pack
41 run: dotnet pack --no-restore --configuration Release --output ./nupkgs
42
43 - name: Upload nupkg as workflow artifact
44 uses: actions/upload-artifact@v4
45 with:
46 name: nupkg
47 path: ./nupkgs/*.nupkg