Skip to content

feat: add workflow to validade app registry files#196

Merged
Pantani merged 41 commits intomainfrom
feat/check-app-yaml
May 23, 2025
Merged

feat: add workflow to validade app registry files#196
Pantani merged 41 commits intomainfrom
feat/check-app-yaml

Conversation

@Pantani
Copy link
Collaborator

@Pantani Pantani commented May 14, 2025

Description

Add a workflow to validate new app registry files and changes to existing files.

Solution

Editing or creating a new file in the pull request will trigger the validate-app-registry.yml workflow. Calling the new appregistry command ignite appregistry validate <FILE_PATH>. This command validates the JSON file fields and URLs, and also checks if the Ignite version matches the go mod version from the app.

This PR also creates a script to validate all app registry files:

./scripts/validate-registry-files.sh

@Pantani Pantani changed the title feat: validate new app yaml files feat: add workflow to validade app registry files May 15, 2025
@Pantani Pantani marked this pull request as ready for review May 15, 2025 16:27
@toschdev
Copy link
Contributor

Two minor things that might make sense:

  • Check if the name / slug is unique
  • Should we require a license?

@Pantani Pantani requested a review from toschdev May 16, 2025 19:36
@Pantani Pantani requested a review from julienrbrt May 23, 2025 06:17
@Pantani Pantani enabled auto-merge (squash) May 23, 2025 06:19
Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non blocking questions. I guess well see after the merge lol


- name: Fetch base branch
run: |
git fetch origin ${{ github.event.pull_request.base.ref }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it work on main? If it isn't a PR?

GOTOOLCHAIN: local+path
GOSUMDB: off
run: go test -race -failfast -v -timeout 120m ./integration/...
run: go test -race -failfast -v -timeout 120m ./integration/... --branch ${{ github.event.pull_request.head.ref }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto

@Pantani Pantani merged commit 35ca34f into main May 23, 2025
38 checks passed
@Pantani Pantani deleted the feat/check-app-yaml branch May 23, 2025 06:33
@julienrbrt julienrbrt mentioned this pull request May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants