Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,16 @@ jobs:
path: versions.json
if-no-files-found: error

schema-check:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2

- run: npx -p ajv-cli@3.3.0 ajv compile -s schema.json

upload-to-s3:
needs: [package-tests, full-test]
needs: [package-tests, full-test, schema-check]
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
timeout-minutes: 60
Expand Down Expand Up @@ -141,5 +149,7 @@ jobs:
run: rm -fv versions.json
- name: Download the current versions.json from S3
run: curl -LO https://julialang-s3.julialang.org/bin/versions.json
- name: Validate versions.json against schema
run: npx -p ajv-cli@3.3.0 ajv -s schema.json -d versions.json
- name: Run the post-build tests on the versions.json that we downloaded from S3
run: julia --project test/more_tests.jl versions.json
8 changes: 8 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@
".exe",
".gz",
".zip"
],
"allOf": [
{
"pattern": "^https://"
},
{
"pattern": "\\.(?:dmg|exe|gz|zip)$"
}
]
},
"asc": {
Expand Down
Loading