Skip to content

Commit 0d2187a

Browse files
committed
Cleanup ArangoDB CI
1 parent 23f288f commit 0d2187a

File tree

1 file changed

+5
-43
lines changed

1 file changed

+5
-43
lines changed

.github/workflows/healthchecks_arangodb_ci.yml

Lines changed: 5 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -28,46 +28,8 @@ on:
2828

2929
jobs:
3030
build:
31-
runs-on: ubuntu-latest
32-
services:
33-
arangodb:
34-
image: arangodb/arangodb:latest
35-
ports:
36-
- 8529:8529
37-
env:
38-
ARANGO_ROOT_PASSWORD: strongArangoDbPassword
39-
steps:
40-
- uses: actions/checkout@v3
41-
- name: Setup .NET
42-
uses: actions/setup-dotnet@v4
43-
with:
44-
dotnet-version: |
45-
8.0.x
46-
9.0.x
47-
- name: Restore
48-
run: |
49-
dotnet restore ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj &&
50-
dotnet restore ./test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.Tests.csproj
51-
- name: Check formatting
52-
run: |
53-
dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) &&
54-
dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1)
55-
- name: Build
56-
run: |
57-
dotnet build --no-restore ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj &&
58-
dotnet build --no-restore ./test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.Tests.csproj
59-
- name: Test
60-
run: >
61-
dotnet test
62-
./test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.Tests.csproj
63-
--no-restore
64-
--no-build
65-
--collect "XPlat Code Coverage"
66-
--results-directory .coverage
67-
--
68-
DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
69-
- name: Upload Coverage
70-
uses: codecov/codecov-action@v5
71-
with:
72-
flags: ArangoDb
73-
directory: .coverage
31+
uses: ./.github/workflows/reusable_ci_workflow.yml
32+
with:
33+
PROJECT_PATH: ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj
34+
TEST_PROJECT_PATH: ./test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.Tests.csproj
35+
CODECOV_FLAGS: ArangoDb

0 commit comments

Comments
 (0)