Add automated tests

This commit is contained in:
Rob Loach 2020-06-08 15:01:23 -04:00
parent 04a0ec7bf8
commit 078e42d8f8
No known key found for this signature in database
GPG Key ID: 627C60834A74A21A
3 changed files with 35 additions and 0 deletions

13
.github/workflows/tests.yml vendored Normal file
View File

@ -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

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/node_modules
/package-lock.json

20
package.json Normal file
View File

@ -0,0 +1,20 @@
{
"name": "selfhosted_templates",
"version": "1.0.0",
"description": "Portainer Templates for Selfhosted Projects/Homelabs.",
"private": true,
"devDependencies": {
"valid-json-cli": "^1.4.1",
"yaml-validator": "^3.0.0"
},
"scripts": {
"pretest": "validjson Template/template.json",
"test": "yaml-validator Template/Stack/*"
},
"repository": {
"type": "git",
"url": "git+https://github.com/SelfhostedPro/selfhosted_templates.git"
},
"author": "Qballjos",
"license": "GPLv3"
}