microsoft/teams.net

Public

mirrored fromhttps://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
fix/msal-cache

Branches

Tags

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

Clone

HTTPS

Download ZIP

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

57lines · modecode

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