From 1839ee83fbb1887cc4833c4a3f735c8869ad5ca6 Mon Sep 17 00:00:00 2001 From: Tommy Gatti Date: Mon, 8 Apr 2024 10:49:49 +1000 Subject: [PATCH] Added tests for validate-repo-version action --- .github/workflows/actions.yml | 9 ++++++--- config/versions.json | 5 +++++ config/versions.schema.json | 19 +++++++++++++++++++ 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 config/versions.json create mode 100644 config/versions.schema.json diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 3a779c8..54ece6b 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -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 diff --git a/config/versions.json b/config/versions.json new file mode 100644 index 0000000..db8e43b --- /dev/null +++ b/config/versions.json @@ -0,0 +1,5 @@ +{ + "$schema": "./versions.schema.json", + "spack-packages": "2024.03.22", + "spack-config": "2024.03.22" +} \ No newline at end of file diff --git a/config/versions.schema.json b/config/versions.schema.json new file mode 100644 index 0000000..9184352 --- /dev/null +++ b/config/versions.schema.json @@ -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 +} \ No newline at end of file