Skip to content

Commit

Permalink
Added tests for validate-repo-version action
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeGat committed Apr 8, 2024
1 parent fcb15d0 commit 1839ee8
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ jobs:
permissions:
pull-requests: write
steps:
- uses: access-nri/actions/.github/actions/pr-comment@pr-comment-action
- uses: access-nri/build-cd/.github/actions/validate-repo-version@access-om3-2-generify-repo-check
with:
comment: |
a really cool comment!!
repos-to-check: spack-packages spack-config

- uses: access-nri/build-cd/.github/actions/validate-repo-version@access-om3-2-generify-repo-check
with:
repos-to-check: spack-packages
5 changes: 5 additions & 0 deletions config/versions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "./versions.schema.json",
"spack-packages": "2024.03.22",
"spack-config": "2024.03.22"
}
19 changes: 19 additions & 0 deletions config/versions.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Deployment Environments",
"description": "A list of deployment targets that are supported",
"type": "object",
"properties": {
"$schema": {
"type": "string"
},
"spack-packages": {
"type": "string"
},
"spack-config": {
"type": "string"
}
},
"required": [ "$schema", "spack-packages", "spack-config" ],
"additionalProperties": false
}

0 comments on commit 1839ee8

Please sign in to comment.