Skip to content

Commit fbc76f3

Browse files
committedJun 16, 2024
Init
0 parents  commit fbc76f3

File tree

8 files changed

+804
-0
lines changed

8 files changed

+804
-0
lines changed
 

‎.github/workflows/main.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on: [push]
2+
3+
jobs:
4+
plugin_json:
5+
runs-on: ubuntu-latest
6+
name: Test some plugin.json files
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v4
10+
11+
- name: Test minimal.json
12+
uses: ./
13+
with:
14+
file: test/minimal.json
15+
16+
- name: Test full.json
17+
uses: ./
18+
with:
19+
file: test/full.json

‎README.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Voxelite plugin.json Validator
2+
3+
This action prints "Hello World" or "Hello" + the name of a person to greet to the log.
4+
5+
## Inputs
6+
7+
### `file`
8+
9+
**Required** Path to your `plugin.json`. Default `"plugin.json"` (=root directory of your repository).
10+
11+
### `official`
12+
13+
Set to `true` for official Voxelite plugins.
14+
Causes the validator to not check against official names.
15+
16+
## Example usage
17+
18+
```yaml
19+
uses: voxelite/plugin-json-validator
20+
```
21+
22+
For `plugin.json` format look into official documentation, some examples can be found in [test directory](test).

‎action.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: 'Voxelite plugin.json validator'
2+
description: 'Validate your plugin.json file'
3+
inputs:
4+
file:
5+
description: 'File to check'
6+
required: true
7+
default: 'plugin.json'
8+
official:
9+
description: 'Set to `true` for official plugins, otherwise shows some warning when the plugin looks too official'
10+
default: 'false'
11+
runs:
12+
using: 'node20'
13+
main: 'index.js'

0 commit comments

Comments
 (0)