Skip to content

Commit 1839ee8

Browse files
committed
Added tests for validate-repo-version action
1 parent fcb15d0 commit 1839ee8

3 files changed

Lines changed: 30 additions & 3 deletions

File tree

.github/workflows/actions.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ jobs:
66
permissions:
77
pull-requests: write
88
steps:
9-
- uses: access-nri/actions/.github/actions/pr-comment@pr-comment-action
9+
- uses: access-nri/build-cd/.github/actions/validate-repo-version@access-om3-2-generify-repo-check
1010
with:
11-
comment: |
12-
a really cool comment!!
11+
repos-to-check: spack-packages spack-config
12+
13+
- uses: access-nri/build-cd/.github/actions/validate-repo-version@access-om3-2-generify-repo-check
14+
with:
15+
repos-to-check: spack-packages

config/versions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "./versions.schema.json",
3+
"spack-packages": "2024.03.22",
4+
"spack-config": "2024.03.22"
5+
}

config/versions.schema.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Deployment Environments",
4+
"description": "A list of deployment targets that are supported",
5+
"type": "object",
6+
"properties": {
7+
"$schema": {
8+
"type": "string"
9+
},
10+
"spack-packages": {
11+
"type": "string"
12+
},
13+
"spack-config": {
14+
"type": "string"
15+
}
16+
},
17+
"required": [ "$schema", "spack-packages", "spack-config" ],
18+
"additionalProperties": false
19+
}

0 commit comments

Comments
 (0)