Skip to content

Commit 7da5e77

Browse files
committed
Add CI job
1 parent 8d7b7ef commit 7da5e77

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
env:
8+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
9+
DOTNET_CLI_TELEMETRY_OPTOUT: true
10+
jobs:
11+
format:
12+
runs-on: ubuntu-latest
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-dotnet@v3
15+
with:
16+
dotnet-version: 6.0.x
17+
- run: dotnet format --verify-no-changes
18+
- run: dotnet format --verify-no-changes
19+
working-directory: snapshots/input/syntax
20+
test:
21+
runs-on: ${{ matrix.os }}
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
os: [ubuntu-latest, windows-latest, macos-latest]
26+
name: Test
27+
steps:
28+
- uses: actions/checkout@v3
29+
- uses: actions/setup-dotnet@v3
30+
with:
31+
dotnet-version: 6.0.x
32+
- run: dotnet test
33+

0 commit comments

Comments
 (0)