Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
lerenn committed Jul 25, 2024
1 parent a760678 commit bb0b49f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- uses: dagger/dagger-for-github@v5
with:
verb: call
args: -m build/ci run-examples --src-dir .
args: -m build/ci examples --src-dir .
version: "0.11.0"

lint:
Expand Down
6 changes: 3 additions & 3 deletions build/ci/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ SRC_DIR := ../..
check: ## Run all the checks before commit on Dagger
@dagger call check --src-dir $(SRC_DIR)

.PHONY: run-examples
run-examples: ## Run all the examples on Dagger
@dagger call run-examples --src-dir $(SRC_DIR)
.PHONY: examples
examples: ## Run all the examples on Dagger
@dagger call examples --src-dir $(SRC_DIR)

.PHONY: check-generation
check-generation: ## Check files are generated on Dagger
Expand Down
6 changes: 3 additions & 3 deletions build/ci/dagger/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (ci *AsyncapiCodegenCi) Check(
containers = append(containers, ci.CheckGeneration(ctx, srcDir))
containers = append(containers, ci.Lint(ctx, srcDir))

examples, err := ci.RunExamples(ctx, srcDir)
examples, err := ci.Examples(ctx, srcDir)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -83,8 +83,8 @@ func (ci *AsyncapiCodegenCi) Lint(
WithExec([]string{"golangci-lint", "run"})
}

// RunExamples runs AsyncAPI-Codegen examples.
func (ci *AsyncapiCodegenCi) RunExamples(
// Examples runs AsyncAPI-Codegen examples.
func (ci *AsyncapiCodegenCi) Examples(
ctx context.Context,
srcDir *dagger.Directory,
) ([]*dagger.Container, error) {
Expand Down

0 comments on commit bb0b49f

Please sign in to comment.