-
Notifications
You must be signed in to change notification settings - Fork 83
41 lines (39 loc) · 1.37 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Main workflow
on: [push, pull_request]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
ci:
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Setup dotnet 3.0.100
uses: actions/setup-dotnet@v2
with:
dotnet-version: "3.1.100" # SDK Version to use.
- name: Setup dotnet 5.0.x
uses: actions/setup-dotnet@v2
with:
dotnet-version: "5.0.x" # SDK Version to use (x uses the latest version).
- name: Setup dotnet 6.0.x
uses: actions/setup-dotnet@v2
with:
dotnet-version: "6.0.x" # SDK Version to use (x uses the latest version).
- name: Setup dotnet 7.0.x
uses: actions/setup-dotnet@v2
with:
dotnet-version: "7.0.x" # SDK Version to use (x uses the latest version).
# dotnet restore
- name: restore
run: dotnet restore
# dotnet build and publish
- name: Build with dotnet
run: dotnet build --configuration Release
# dotnet test
- name: test
run: dotnet test