Skip to content

Commit

Permalink
Merge pull request #1 from EchoSingh/new-lang
Browse files Browse the repository at this point in the history
java file
  • Loading branch information
EchoSingh authored Jan 19, 2025
2 parents f32e2f9 + bbf43ad commit 50d107b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test-json.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test JSON Validity

on:
push:
branches:
- main
- new-lang
pull_request:
branches:
- main
- new-lang

jobs:
test-json:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Validate run.json files
run: |
# Find all run.json files in the repository and check if they are valid JSON
find . -name "run.json" -exec jq empty {} \; || exit 1
9 changes: 9 additions & 0 deletions configs/Java/run.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"configurations": [
{
"name": "Run Java Program",
"type": "command",
"program": "java",
"args": ["-cp", ".", "YourJavaClassName"]
}
]

0 comments on commit 50d107b

Please sign in to comment.