-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (39 loc) · 969 Bytes
/
test.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
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
- 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
- run: dotnet test -p:TargetFrameworks=net8.0
- run: dotnet test -p:TargetFrameworks=net7.0
- run: dotnet test -p:TargetFrameworks=net6.0