-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (39 loc) · 1.04 KB
/
ci.yml
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
name: Continuous Delivery
on:
push:
branches:
- "**"
tags-ignore:
- '**'
jobs:
test:
name: Build & Test
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Build
run: dotnet build -c Release
- name: Test
run: dotnet test -c Release --no-build --verbosity normal
- name: Ensure Generated Code is Committed
shell: bash
run: |
git diff --ignore-space-at-eol --ignore-cr-at-eol --exit-code
release:
name: Create Release
uses: Fresa/Library.Net.ContinuousDelivery/.github/workflows/release.yml@v0
needs: test
if: github.repository == 'Fresa/Kafka.Protocol' && github.actor != 'dependabot[bot]'
with:
project_path: Kafka.Protocol
project_name: Kafka.Protocol
secrets:
nuget_api_key: ${{ secrets.NUGET_API_KEY }}