-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (34 loc) · 1.18 KB
/
ci.yml
File metadata and controls
41 lines (34 loc) · 1.18 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
name: CI
run-name: CI 🔍 ${{ github.event.pull_request.title }}
on:
pull_request:
concurrency:
group: ci-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
tests:
runs-on: ubuntu-latest
name: Tests dotnet ${{ matrix.dotnet-version }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
dotnet-version: [10]
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Build projects
shell: bash
run: dotnet build ./all.csproj -f net${{ matrix.dotnet-version }}.0 -graph:true
- name: Check for breaking API changes
shell: bash
run: |
dotnet build src/TerraformDotnet.Hcl/TerraformDotnet.Hcl.csproj --no-restore -warnaserror:RS0016,RS0017
dotnet build src/TerraformDotnet/TerraformDotnet.csproj --no-restore -warnaserror:RS0016,RS0017
- name: Run tests
shell: bash
run: dotnet test ./all.csproj /p:BuildTestsOnly=true --no-build -f net${{ matrix.dotnet-version }}.0 -- RunConfiguration.MaxCpuCount=1