-
Notifications
You must be signed in to change notification settings - Fork 1
100 lines (91 loc) · 2.86 KB
/
main.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Main
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonar:
name: Sonar Analysis
uses: ./.github/workflows/sonar.yml
secrets: inherit
tests:
name: Run Tests
uses: ./.github/workflows/tests.yml
secrets: inherit
check-paths:
runs-on: ubuntu-latest
needs: [sonar, tests]
if: ${{ github.event_name != 'pull_request' }}
name: Check Changes
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2.11.1
id: changes
with:
filters: |
core:
- 'src/core/**'
db:
- 'src/db/decaf.db.common/**'
npgsql:
- 'src/db/decaf.npgsql/**'
sqlserver:
- 'src/db/decaf.sqlserver/**'
sqlite:
- 'src/db/decaf.sqlite/**'
services:
- 'src/extensions/decaf.services/**'
logging_serilog:
- 'src/extensions/decaf.logging.serilog/**'
outputs:
run-core: ${{ steps.changes.outputs.core }}
run-db: ${{ steps.changes.outputs.db }}
run-npgsql: ${{ steps.changes.outputs.npgsql }}
run-sqlserver: ${{ steps.changes.outputs.sqlserver }}
run-sqlite: ${{ steps.changes.outputs.sqlite }}
run-services: ${{ steps.changes.outputs.services }}
run-logging-serilog: ${{ steps.changes.outputs.logging_serilog }}
pub-decaf:
name: decaf
needs: [check-paths]
if: ${{ needs.check-paths.outputs.run-core == 'true' }}
uses: ./.github/workflows/publish-decaf.yml
secrets: inherit
pub-decafdb:
name: decaf.db
needs: [check-paths]
if: ${{ needs.check-paths.outputs.run-db == 'true' }}
uses: ./.github/workflows/publish-decaf.db.yml
secrets: inherit
pub-decafnpgsql:
name: decaf.npgsql
needs: [check-paths]
if: ${{ needs.check-paths.outputs.run-npgsql == 'true' }}
uses: ./.github/workflows/publish-decaf.db.npgsql.yml
secrets: inherit
pub-decafsqlserver:
name: decaf.sqlserver
needs: [check-paths]
if: ${{ needs.check-paths.outputs.run-sqlserver == 'true' }}
uses: ./.github/workflows/publish-decaf.db.sqlserver.yml
secrets: inherit
pub-decafsqlite:
name: decaf.sqlite
needs: [check-paths]
if: ${{ needs.check-paths.outputs.run-sqlite == 'true' }}
uses: ./.github/workflows/publish-decaf.db.sqlite.yml
secrets: inherit
pub-decafservices:
name: decaf.services
needs: [check-paths]
if: ${{ needs.check-paths.outputs.run-services == 'true' }}
uses: ./.github/workflows/publish-decaf.services.yml
secrets: inherit
pub-decafloggingserilog:
name: decaf.logging.serilog
needs: [check-paths]
if: ${{ needs.check-paths.outputs.run-logging-serilog == 'true' }}
uses: ./.github/workflows/publish-decaf.logging.serilog.yml
secrets: inherit