Skip to content

GitHub Actions Integration #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks
9ssi7 opened this issue Apr 22, 2025 · 0 comments · May be fixed by #3
Open
2 tasks

GitHub Actions Integration #2

9ssi7 opened this issue Apr 22, 2025 · 0 comments · May be fixed by #3

Comments

@9ssi7
Copy link

9ssi7 commented Apr 22, 2025

Requirements

  • CLI tool for execution
  • Yaml parser for pre-defined structure config

End case

want to have this action yml

# .github/workflows/go-arctest.yml
name: Architecture Test

on: [push, pull_request]

jobs:
  check-architecture:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      
      - name: Run go-arctest
        uses: mstrYoda/go-arctest@v1
        with:
          config: '.github/arctest-config.yml'

with config (just idea)

# .github/arctest-config.yml
layers:
  - name: Domain
    pattern: "^domain/.*$"
  - name: Application
    pattern: "^application/.*$"
  - name: Infrastructure
    pattern: "^infrastructure/.*$"
  - name: Presentation
    pattern: "^presentation/.*$"

rules:
  - from: Application
    to: Domain
  - from: Infrastructure
    to: Domain
  - from: Infrastructure
    to: Application
  - from: Presentation
    to: Domain
  - from: Presentation
    to: Application
  - from: Presentation
    to: Infrastructure

ref: https://docs.github.com/en/actions/sharing-automations/creating-actions/about-custom-actions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant