-
Notifications
You must be signed in to change notification settings - Fork 3
58 lines (45 loc) · 1.48 KB
/
Copy pathci.yml
File metadata and controls
58 lines (45 loc) · 1.48 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
55
56
57
58
name: CI
on:
push:
branches: ['**']
pull_request:
branches: [develop, main]
permissions:
contents: read
pull-requests: write
jobs:
build-and-test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
env:
# Tells Terminal.Gui drivers to skip real-terminal probing/IO
# so the ANSI driver runs on Windows runners without a TTY.
DisableRealDriverIO: "1"
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
dotnet-quality: 'preview'
- name: Restore
run: dotnet restore Clet.slnx
- name: Build
run: dotnet build Clet.slnx --no-restore
# Style gate runs once (Linux).
- name: Verify code style — dotnet format
if: matrix.os == 'ubuntu-latest'
run: |
dotnet format Clet.slnx --no-restore --verify-no-changes
- name: Unit Tests
run: dotnet run --project tests/Clet.UnitTests --no-build
- name: Integration Tests
run: dotnet run --project tests/Clet.IntegrationTests --no-build
- name: Smoke Tests
continue-on-error: true # Known flaky on Windows CI runners; full harness lands at v0.3
run: dotnet run --project tests/Clet.SmokeTests --no-build
- name: clet --help (process smoke)
run: dotnet run --project src/Clet --no-build -- --help