Skip to content

Commit b4e57c9

Browse files
committed
ci: gate release and docs deploy on CI checks, bump to 0.1.1
1 parent 6bee0fb commit b4e57c9

3 files changed

Lines changed: 57 additions & 1 deletion

File tree

.github/workflows/docs.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,35 @@ concurrency:
1414
cancel-in-progress: false
1515

1616
jobs:
17+
checks:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Setup .NET
23+
uses: actions/setup-dotnet@v4
24+
with:
25+
dotnet-version: |
26+
6.0.x
27+
7.0.x
28+
8.0.x
29+
9.0.x
30+
10.0.x
31+
32+
- name: Restore
33+
run: dotnet restore DataNormalizer.sln
34+
35+
- name: Build
36+
run: dotnet build DataNormalizer.sln --no-restore
37+
38+
- name: Check formatting
39+
run: dotnet tool restore && dotnet csharpier check .
40+
41+
- name: Test
42+
run: dotnet test DataNormalizer.sln --no-build
43+
1744
deploy-docs:
45+
needs: checks
1846
environment:
1947
name: github-pages
2048
url: ${{ steps.deployment.outputs.page_url }}

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,35 @@ on:
44
tags: ['v*']
55

66
jobs:
7+
checks:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- name: Setup .NET
13+
uses: actions/setup-dotnet@v4
14+
with:
15+
dotnet-version: |
16+
6.0.x
17+
7.0.x
18+
8.0.x
19+
9.0.x
20+
10.0.x
21+
22+
- name: Restore
23+
run: dotnet restore DataNormalizer.sln
24+
25+
- name: Build
26+
run: dotnet build DataNormalizer.sln --no-restore
27+
28+
- name: Check formatting
29+
run: dotnet tool restore && dotnet csharpier check .
30+
31+
- name: Test
32+
run: dotnet test DataNormalizer.sln --no-build
33+
734
release:
35+
needs: checks
836
runs-on: ubuntu-latest
937
environment: production
1038
permissions:

src/DataNormalizer/DataNormalizer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0;net10.0</TargetFrameworks>
4-
<VersionPrefix>0.1.0</VersionPrefix>
4+
<VersionPrefix>0.1.1</VersionPrefix>
55
<PackageId>DataNormalizer</PackageId>
66
<Description>Source generator that normalizes nested object graphs into flat, deduplicated representations.</Description>
77
<Authors>David Stern</Authors>

0 commit comments

Comments
 (0)