Merge pull request #56 from RobLoach/tests

Add Automated Testing
This commit is contained in:
SelfhostedPro 2020-06-09 07:29:44 -07:00 committed by GitHub
commit a5ab40bed4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 37 additions and 2 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": {
"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"
}