Skip to content

Commit 38d0b00

Browse files
Create dotnet.yml
1 parent 27060a3 commit 38d0b00

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/dotnet.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# This workflow will build a .NET project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+
name: WeixinAuth
5+
6+
on:
7+
push:
8+
branches: [ "master", "**.**" ]
9+
pull_request:
10+
branches: [ "master" ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Setup .NET 7.0.x
21+
uses: actions/setup-dotnet@v3
22+
with:
23+
dotnet-version: 7.0.x
24+
25+
- name: Setup .NET 6.0.x
26+
uses: actions/setup-dotnet@v3
27+
with:
28+
dotnet-version: 6.0.x
29+
30+
- name: Setup .NET 5.0.x
31+
uses: actions/setup-dotnet@v3
32+
with:
33+
dotnet-version: 5.0.x
34+
35+
- name: Setup .NET 3.1.x
36+
uses: actions/setup-dotnet@v3
37+
with:
38+
dotnet-version: 3.1.x
39+
40+
- name: Restore dependencies
41+
run: dotnet restore
42+
43+
- name: Build
44+
run: dotnet build --no-restore
45+
46+
- name: Test
47+
run: dotnet test --no-build --verbosity normal

0 commit comments

Comments
 (0)