forked from Xabaril/AspNetCore.Diagnostics.HealthChecks
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (45 loc) · 1.7 KB
/
healthchecks_aws_s3_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
43
44
45
46
47
name: HealthChecks Aws.S3 CI
on:
workflow_dispatch:
push:
branches: [ master ]
paths:
- src/HealthChecks.Aws.S3/**
- test/HealthChecks.Aws.S3.Tests/**
- .github/workflows/healthchecks_aws_s3_ci.yml
- Directory.Build.props
- Directory.Build.targets
tags-ignore:
- release-*
pull_request:
branches: [ master ]
paths:
- src/HealthChecks.Aws.S3/**
- test/HealthChecks.Aws.S3.Tests/**
- .github/workflows/healthchecks_aws_s3_ci.yml
- Directory.Build.props
- Directory.Build.targets
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.202
include-prerelease: false
- name: Restore
run: |
dotnet restore ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj &&
dotnet restore ./test/HealthChecks.Aws.S3.Tests/HealthChecks.Aws.S3.Tests.csproj
- name: Check formatting
run: |
dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) &&
dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Aws.S3.Tests/HealthChecks.Aws.S3.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1)
- name: Build
run: |
dotnet build --no-restore ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj &&
dotnet build --no-restore ./test/HealthChecks.Aws.S3.Tests/HealthChecks.Aws.S3.Tests.csproj
- name: Test
run: dotnet test --no-restore --no-build ./test/HealthChecks.Aws.S3.Tests/HealthChecks.Aws.S3.Tests.csproj