Skip to content

Commit

Permalink
Remove vendored CUE dependencies (#13)
Browse files Browse the repository at this point in the history
Signed-off-by: Antoine THEBAUD <[email protected]>
  • Loading branch information
AntoineThebaud authored Nov 21, 2024
1 parent 209baa2 commit f1c1243
Show file tree
Hide file tree
Showing 59 changed files with 109 additions and 1,566 deletions.
32 changes: 29 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,30 @@ jobs:
- run: npm ci
- run: npm run lint

validate-cue:
name: "Validate CUE schemas"
get-schemas-deps:
name: "Get dependencies for plugin schemas"
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- uses: perses/[email protected]
- uses: ./.github/perses-ci/actions/setup_environment
with:
enable_go: true
- uses: ./.github/perses-ci/actions/install_percli
with:
cli_version: "main-2024-11-13-e99df92a-distroless" # To replace by latest when `percli plugin update` command will be released
- run: go run ./scripts/get-schemas-deps/get-schemas-deps.go
- name: store plugin schema dependencies
uses: actions/upload-artifact@v4
with:
name: plugins-schema-deps
path: |
*/cue.mod/pkg
validate-schemas:
name: "Validate plugin schemas"
needs: "get-schemas-deps"
runs-on: ubuntu-latest
steps:
- name: checkout
Expand All @@ -55,11 +77,15 @@ jobs:
- uses: ./.github/perses-ci/actions/setup_environment
with:
enable_go: true
- name: retrieve plugin schema dependencies
uses: actions/download-artifact@v4
with:
name: plugins-schema-deps
- run: go run ./scripts/validate-schemas/validate-schemas.go

release:
name: "release"
needs: "build"
needs: ["build","validate-schemas"]
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ dist/
!.vscode/extensions.json
.idea

*.tar.gz
# generated archives
*.tar.gz

# external CUE dependencies
/*/cue.mod/pkg/

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit f1c1243

Please sign in to comment.