Skip to content
Merged
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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
fail-fast: false

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 #v6.2.0
with:
python-version: ${{ matrix.python-version }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-github-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- name: Checkout Code
uses: actions/checkout@v4
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0

- name: Validate Action Metadata
run: |
Expand All @@ -37,7 +37,7 @@ jobs:
echo "Tag found: $TAG"

- name: Publish Release
uses: elgohr/Github-Release-Action@v5
uses: elgohr/Github-Release-Action@c5ea99036abb741a89f8bf1f2cd7fba845e3313a #v5
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/validate-schema-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ jobs:
test-action:
runs-on: ubuntu-latest
env:
PYTHON_VERSION: "3.13"
PYTHON_VERSION: "3.14"
SCHEMA_FILE: "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json"
DATA_FILE: ".devcontainer/devcontainer.json"
VERBOSE: "false"

steps:
- name: Checkout Code
uses: actions/checkout@v4
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0

- name: Set Up Python
uses: actions/setup-python@v4
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 #v6.2.0
with:
python-version: ${{ env.PYTHON_VERSION }}

Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ This GitHub Action validates a devcontainer.json file against a schema by first

**Note**: The default `schema` has been tested and verified to work. If you customize the `schema`, ensure that it is a valid JSON schema to avoid validation errors.

| Name | Description | Required | Default |
|----------------|------------------------------------------|----------|-------------------------------------------------------------------------|
| `schema` | Path or URL to the JSON schema. | No | `https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json` |
| `data` | Path or URL to the JSON data. | No | `devcontainer/devcontainer.json` |
| `verbose` | Enable verbose output (true/false). | No | `false` |
| `python-version` | Python version to use. Allowed versions are: 3.9, 3.10, 3.11, 3.12, 3.13. | No | `3.13` |
| Name | Description | Required | Default |
| - | - | - | - |
| `schema` | Path or URL to the JSON schema. | No | `https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json` |
| `data` | Path or URL to the JSON data. | No | `devcontainer/devcontainer.json` |
| `verbose` | Enable verbose output (true/false). | No | `false` |
| `python-version` | Python version to use. Allowed versions are: 3.9, 3.10, 3.11, 3.12, 3.13, 3.14. | No | `3.14` |

## Usage

Expand All @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Validate Devcontainer Schema
uses: actionsforge/actions-validate-devschema@v1
Expand Down
9 changes: 5 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,22 @@ inputs:
- 3.11
- 3.12
- 3.13
- 3.14
required: false
default: "3.13"
default: "3.14"

runs:
using: "composite"
steps:
- name: Validate Python Version
run: |
echo "::group::Validate Python Version"
ALLOWED_VERSIONS=("3.9" "3.10" "3.11" "3.12" "3.13")
ALLOWED_VERSIONS=("3.9" "3.10" "3.11" "3.12" "3.13" "3.14")
PYTHON_VERSION="${{ inputs.python-version }}"

# Use default if input is not set
if [ -z "$PYTHON_VERSION" ]; then
PYTHON_VERSION="3.13"
PYTHON_VERSION="3.14"
fi

# Validate against allowed versions
Expand All @@ -51,7 +52,7 @@ runs:
shell: bash

- name: Set Up Python
uses: actions/setup-python@v4
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 #v6.2.0
with:
python-version: "${{ inputs.python-version }}"

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"

[tool.poetry]
name = "validate-devschema"
version = "0.1.0"
version = "0.1.1"
description = "A lightweight DevContainer JSON Schema validator."
authors = ["John Ajera"]
license = "MIT"
Expand Down