Skip to content

Commit

Permalink
Bump to CASE 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kchason committed Sep 3, 2022
1 parent 6c687bf commit 824b073
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM python:3.10-slim-bullseye
WORKDIR /opt/workspace

# Install dependencies
RUN python -m pip install case-utils==0.6.0
RUN python -m pip install case-utils==0.7.0

# Delete source files now that package has been installed
WORKDIR /opt/workspace
Expand All @@ -14,7 +14,7 @@ COPY entrypoint.sh /opt/workspace/entrypoint.sh

# Define the base path for the validation path
ENV CASE_PATH "/opt/json/"
ENV CASE_VERSION "case-0.7.0"
ENV CASE_VERSION "case-1.0.0"
ENV FILTER_EXTENSION ""

# Define the command to run the entrypoint.sh script that will detect the type
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ Include the validation action in your GitHub action workflow and specify the fil
```yaml
# Run the CASE validation job to confirm the output is valid
- name: CASE Export Validation
uses: kchason/case-validation-action@v2.2
uses: kchason/case-validation-action@v2.3
with:
case-path: ./output/
case-version: "case-0.7.0"
case-version: "case-1.0.0"
extension-filter: "jsonld"
```
Expand All @@ -37,7 +37,7 @@ The environment variables are defined below in the "Inputs" table, and the below
# To run the latest image and remove the container after execution.
docker run --rm \
-e CASE_PATH="/opt/case/" \
-e CASE_VERSION="case-0.7.0" \
-e CASE_VERSION="case-1.0.0" \
-e FILTER_EXTENSION="jsonld" \
-v "/path/to/local:/opt/case" \
kchason/case-validator:latest
Expand All @@ -48,7 +48,7 @@ docker run --rm \
| Action Variable | Environment Variable | Description | Options | Default |
| ---------------- | -------------------- | ------------------------------------------------------------ | ---------------------------------- | ------------ |
| case-path | CASE_PATH | The path to the file or directory to be validated. | Any | /opt/json |
| case-version | CASE_VERSION | The version of the ontology against which the graph should be validatated. | "none", "case-0.5.0", "case-0.6.0" , "case-0.7.0" | "case-0.7.0" |
| case-version | CASE_VERSION | The version of the ontology against which the graph should be validatated. | "none", "case-0.5.0", "case-0.6.0" , "case-0.7.0", "case-0.7.1", "case-1.0.0" | "case-1.0.0" |
| extension-filter | FILTER_EXTENSION | The extension of only the files against which the validator should be run. Eg. `"json"`, `"jsonld"`, `"case"`. Defaults to `""` to run against all files defined in `case-path`. | Any | "" |

## Example Output
Expand Down
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ inputs:
required: false
default: '/opt/json/'
case-version:
description: 'The version of the ontology against which the graph should be validated. Options: "none", "case-0.5.0", "case-0.6.0"'
description: 'The version of the ontology against which the graph should be validated. Options: "none", "case-0.5.0", "case-0.6.0", "case-0.7.0", "case-0.7.1"'
required: false
default: 'case-0.7.0'
default: 'case-1.0.0'
extension-filter:
description: 'The extension of only the files against which the validator should be run. Eg. "json", "jsonld", "case". Defaults to "" to run against all files defined in `case-path`.'
required: false
default: ''
runs:
using: 'docker'
image: 'docker://kchason/case-validator:0.7.0'
image: 'docker://kchason/case-validator:1.0.0'
env:
CASE_PATH: ${{ inputs.case-path }}
CASE_VERSION: ${{ inputs.case-version }}
Expand Down

0 comments on commit 824b073

Please sign in to comment.