-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (42 loc) · 1.39 KB
/
ci.yml
File metadata and controls
54 lines (42 loc) · 1.39 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
46
47
48
49
50
51
52
53
54
name: CI
on:
push:
branches: ['**']
pull_request:
branches: [main, develop]
permissions:
contents: read
jobs:
build-and-test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'
dotnet-quality: 'preview'
- name: Restore
run: dotnet restore Terminal.Gui.Cli.slnx
- name: Build
run: dotnet build Terminal.Gui.Cli.slnx --no-restore -c Debug
- name: Restore .NET tools
if: matrix.os == 'ubuntu-latest'
run: dotnet tool restore
- name: Verify code style
if: matrix.os == 'ubuntu-latest'
shell: bash
run: |
dotnet jb cleanupcode Terminal.Gui.Cli.slnx --no-build --verbosity=WARN
dotnet format Terminal.Gui.Cli.slnx --no-restore
git diff --exit-code
- name: Terminal.Gui.Cli.Tests
run: dotnet run --project tests/Terminal.Gui.Cli.Tests --no-build -c Debug
- name: Terminal.Gui.Cli.IntegrationTests
run: dotnet run --project tests/Terminal.Gui.Cli.IntegrationTests --no-build -c Debug
- name: Terminal.Gui.Cli.SmokeTests
run: dotnet run --project tests/Terminal.Gui.Cli.SmokeTests --no-build -c Debug