-
Notifications
You must be signed in to change notification settings - Fork 15
45 lines (45 loc) · 1.11 KB
/
test.yml
File metadata and controls
45 lines (45 loc) · 1.11 KB
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
42
43
44
45
name: Test
on:
push:
branches:
- main
pull_request:
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: |
7.x
8.x
9.x
10.x
- run: dotnet format --verify-no-changes
- run: dotnet format --verify-no-changes
working-directory: snapshots/input/syntax
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.x
7.x
8.x
9.x
10.x
- run: dotnet test -p:TargetFrameworks=net10.0
- run: dotnet test -p:TargetFrameworks=net9.0
- run: dotnet test -p:TargetFrameworks=net8.0
- run: dotnet test -p:TargetFrameworks=net7.0
- run: dotnet test -p:TargetFrameworks=net6.0