diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..6bbbbac --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,13 @@ +name: tests +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: '14.x' + - run: npm install + - run: npm test diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d502512 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/node_modules +/package-lock.json diff --git a/Template/Stack/bookstack.yml b/Template/Stack/bookstack.yml index a44f27d..d4c54db 100644 --- a/Template/Stack/bookstack.yml +++ b/Template/Stack/bookstack.yml @@ -31,4 +31,4 @@ services: - MYSQL_PASSWORD=${DATABASE_PASSWORD} volumes: - /portainer/Files/AppData/Bookstack/DB:/config - restart: unless-stopped \ No newline at end of file + restart: unless-stopped diff --git a/Template/template.json b/Template/template.json index 9a0b985..db99f9f 100644 --- a/Template/template.json +++ b/Template/template.json @@ -3654,4 +3654,4 @@ } ] } -] \ No newline at end of file +] diff --git a/package.json b/package.json new file mode 100644 index 0000000..fafbcc9 --- /dev/null +++ b/package.json @@ -0,0 +1,20 @@ +{ + "name": "selfhosted_templates", + "version": "1.0.0", + "description": "Portainer Templates for Selfhosted Projects/Homelabs.", + "private": true, + "devDependencies": { + "jsonlint": "^1.6.3", + "yaml-validator": "^3.0.0" + }, + "scripts": { + "pretest": "jsonlint Template/template.json --quiet", + "test": "yaml-validator Template/Stack/*" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/SelfhostedPro/selfhosted_templates.git" + }, + "author": "Qballjos", + "license": "GPLv3" +}