Skip to content

Commit

Permalink
refactor: rename and update subject
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanchristo committed Sep 6, 2024
1 parent 93d12fd commit 324de33
Show file tree
Hide file tree
Showing 136 changed files with 6,611 additions and 6,580 deletions.
6 changes: 3 additions & 3 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ coverage:
admin:
paths:
- "admin/"
agent:
paths:
- "agent/"
content:
paths:
- "content/"
governor:
paths:
- "governor/"
subject:
paths:
- "subject/"
validator:
paths:
- "validator/"
Expand Down
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ updates:
open-pull-requests-limit: 5

- package-ecosystem: "gomod"
directory: "/agent"
directory: "/content"
schedule:
interval: daily
open-pull-requests-limit: 5

- package-ecosystem: "gomod"
directory: "/content"
directory: "/governor"
schedule:
interval: daily
open-pull-requests-limit: 5

- package-ecosystem: "gomod"
directory: "/governor"
directory: "/subject"
schedule:
interval: daily
open-pull-requests-limit: 5
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/buf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
pull-requests: read # for technote-space/get-diff-action to get git reference
strategy:
matrix:
module: ["admin", "agent", "content", "governor", "validator", "voucher"]
module: ["admin", "content", "governor", "subject", "validator", "voucher"]
steps:
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6
Expand All @@ -38,12 +38,6 @@ jobs:
PATTERNS: |
admin/**/**.proto
if: matrix.module == 'admin'
- uses: technote-space/get-diff-action@v6
id: git-diff-agent
with:
PATTERNS: |
agent/**/**.proto
if: matrix.module == 'agent'
- uses: technote-space/get-diff-action@v6
id: git-diff-content
with:
Expand All @@ -56,6 +50,12 @@ jobs:
PATTERNS: |
governor/**/**.proto
if: matrix.module == 'governor'
- uses: technote-space/get-diff-action@v6
id: git-diff-subject
with:
PATTERNS: |
subject/**/**.proto
if: matrix.module == 'subject'
- uses: technote-space/get-diff-action@v6
id: git-diff-validator
with:
Expand All @@ -74,11 +74,6 @@ jobs:
input: 'admin/proto'
buf_token: ${{ secrets.BUF_TOKEN }}
if: steps.git-diff-admin.outputs.diff
- uses: bufbuild/buf-push-action@v1
with:
input: 'agent/proto'
buf_token: ${{ secrets.BUF_TOKEN }}
if: steps.git-diff-agent.outputs.diff
- uses: bufbuild/buf-push-action@v1
with:
input: 'content/proto'
Expand All @@ -89,6 +84,11 @@ jobs:
input: 'governor/proto'
buf_token: ${{ secrets.BUF_TOKEN }}
if: steps.git-diff-governor.outputs.diff
- uses: bufbuild/buf-push-action@v1
with:
input: 'subject/proto'
buf_token: ${{ secrets.BUF_TOKEN }}
if: steps.git-diff-subject.outputs.diff
- uses: bufbuild/buf-push-action@v1
with:
input: 'validator/proto'
Expand Down
88 changes: 44 additions & 44 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
pull-requests: read # for technote-space/get-diff-action to get git reference
strategy:
matrix:
module: ["admin", "agent", "content", "governor", "validator", "voucher"]
module: ["admin", "content", "governor", "subject", "validator", "voucher"]
steps:
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6
Expand All @@ -39,14 +39,6 @@ jobs:
admin/go.mod
admin/go.sum
if: matrix.module == 'admin'
- uses: technote-space/get-diff-action@v6
id: git-diff-agent
with:
PATTERNS: |
agent/**/**.go
agent/go.mod
agent/go.sum
if: matrix.module == 'agent'
- uses: technote-space/get-diff-action@v6
id: git-diff-content
with:
Expand All @@ -63,6 +55,14 @@ jobs:
governor/go.mod
governor/go.sum
if: matrix.module == 'governor'
- uses: technote-space/get-diff-action@v6
id: git-diff-subject
with:
PATTERNS: |
subject/**/**.go
subject/go.mod
subject/go.sum
if: matrix.module == 'subject'
- uses: technote-space/get-diff-action@v6
id: git-diff-voucher
with:
Expand All @@ -83,10 +83,6 @@ jobs:
with:
go-version-file: 'admin/go.mod'
if: steps.git-diff-admin.outputs.diff
- uses: actions/setup-go@v5
with:
go-version-file: 'agent/go.mod'
if: steps.git-diff-agent.outputs.diff
- uses: actions/setup-go@v5
with:
go-version-file: 'content/go.mod'
Expand All @@ -95,6 +91,10 @@ jobs:
with:
go-version-file: 'governor/go.mod'
if: steps.git-diff-governor.outputs.diff
- uses: actions/setup-go@v5
with:
go-version-file: 'subject/go.mod'
if: steps.git-diff-subject.outputs.diff
- uses: actions/setup-go@v5
with:
go-version-file: 'validator/go.mod'
Expand All @@ -107,10 +107,6 @@ jobs:
with:
working-directory: "admin"
if: steps.git-diff-admin.outputs.diff
- uses: golangci/golangci-lint-action@v6
with:
working-directory: "agent"
if: steps.git-diff-agent.outputs.diff
- uses: golangci/golangci-lint-action@v6
with:
working-directory: "content"
Expand All @@ -119,6 +115,10 @@ jobs:
with:
working-directory: "governor"
if: steps.git-diff-governor.outputs.diff
- uses: golangci/golangci-lint-action@v6
with:
working-directory: "subject"
if: steps.git-diff-subject.outputs.diff
- uses: golangci/golangci-lint-action@v6
with:
working-directory: "validator"
Expand All @@ -134,7 +134,7 @@ jobs:
pull-requests: read # for technote-space/get-diff-action to get git reference
strategy:
matrix:
module: ["admin", "agent", "content", "governor", "validator", "voucher"]
module: ["admin", "content", "governor", "subject", "validator", "voucher"]
steps:
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6
Expand All @@ -143,12 +143,6 @@ jobs:
PATTERNS: |
admin/**/**.proto
if: matrix.module == 'admin'
- uses: technote-space/get-diff-action@v6
id: git-diff-agent
with:
PATTERNS: |
agent/**/**.proto
if: matrix.module == 'agent'
- uses: technote-space/get-diff-action@v6
id: git-diff-content
with:
Expand All @@ -161,6 +155,12 @@ jobs:
PATTERNS: |
governor/**/**.proto
if: matrix.module == 'governor'
- uses: technote-space/get-diff-action@v6
id: git-diff-subject
with:
PATTERNS: |
subject/**/**.proto
if: matrix.module == 'subject'
- uses: technote-space/get-diff-action@v6
id: git-diff-validator
with:
Expand All @@ -176,19 +176,15 @@ jobs:
- uses: bufbuild/buf-setup-action@v1
if: |
steps.git-diff-admin.outputs.diff ||
steps.git-diff-agent.outputs.diff ||
steps.git-diff-content.outputs.diff ||
steps.git-diff-governor.outputs.diff ||
steps.git-diff-subject.outputs.diff ||
steps.git-diff-validator.outputs.diff ||
steps.git-diff-voucher.outputs.diff
- uses: bufbuild/buf-lint-action@v1
with:
input: 'admin/proto'
if: steps.git-diff-admin.outputs.diff
- uses: bufbuild/buf-lint-action@v1
with:
input: 'agent/proto'
if: steps.git-diff-agent.outputs.diff
- uses: bufbuild/buf-lint-action@v1
with:
input: 'content/proto'
Expand All @@ -197,6 +193,10 @@ jobs:
with:
input: 'governor/proto'
if: steps.git-diff-governor.outputs.diff
- uses: bufbuild/buf-lint-action@v1
with:
input: 'subject/proto'
if: steps.git-diff-subject.outputs.diff
- uses: bufbuild/buf-lint-action@v1
with:
input: 'validator/proto'
Expand All @@ -212,7 +212,7 @@ jobs:
pull-requests: read # for technote-space/get-diff-action to get git reference
strategy:
matrix:
module: ["admin", "agent", "content", "governor", "validator", "voucher"]
module: ["admin", "content", "governor", "subject", "validator", "voucher"]
steps:
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6
Expand All @@ -221,12 +221,6 @@ jobs:
PATTERNS: |
admin/**/**.proto
if: matrix.module == 'admin'
- uses: technote-space/get-diff-action@v6
id: git-diff-agent
with:
PATTERNS: |
agent/**/**.proto
if: matrix.module == 'agent'
- uses: technote-space/get-diff-action@v6
id: git-diff-content
with:
Expand All @@ -239,6 +233,12 @@ jobs:
PATTERNS: |
governor/**/**.proto
if: matrix.module == 'governor'
- uses: technote-space/get-diff-action@v6
id: git-diff-subject
with:
PATTERNS: |
subject/**/**.proto
if: matrix.module == 'subject'
- uses: technote-space/get-diff-action@v6
id: git-diff-validator
with:
Expand All @@ -255,10 +255,6 @@ jobs:
with:
go-version-file: 'admin/go.mod'
if: steps.git-diff-admin.outputs.diff
- uses: actions/setup-go@v5
with:
go-version-file: 'agent/go.mod'
if: steps.git-diff-agent.outputs.diff
- uses: actions/setup-go@v5
with:
go-version-file: 'content/go.mod'
Expand All @@ -267,6 +263,10 @@ jobs:
with:
go-version-file: 'governor/go.mod'
if: steps.git-diff-governor.outputs.diff
- uses: actions/setup-go@v5
with:
go-version-file: 'subject/go.mod'
if: steps.git-diff-subject.outputs.diff
- uses: actions/setup-go@v5
with:
go-version-file: 'validator/go.mod'
Expand All @@ -279,23 +279,23 @@ jobs:
run: go install github.com/yoheimuta/protolint/cmd/protolint@latest
if: |
steps.git-diff-admin.outputs.diff ||
steps.git-diff-agent.outputs.diff ||
steps.git-diff-content.outputs.diff ||
steps.git-diff-governor.outputs.diff ||
steps.git-diff-subject.outputs.diff ||
steps.git-diff-validator.outputs.diff ||
steps.git-diff-voucher.outputs.diff
- name: Run protolint
run: protolint ./admin
if: steps.git-diff-admin.outputs.diff
- name: Run protolint
run: protolint ./agent
if: steps.git-diff-agent.outputs.diff
- name: Run protolint
run: protolint ./content
if: steps.git-diff-content.outputs.diff
- name: Run protolint
run: protolint ./governor
if: steps.git-diff-governor.outputs.diff
- name: Run protolint
run: protolint ./subject
if: steps.git-diff-subject.outputs.diff
- name: Run protolint
run: protolint ./validator
if: steps.git-diff-validator.outputs.diff
Expand Down
Loading

0 comments on commit 324de33

Please sign in to comment.