Add automated tests
This commit is contained in:
parent
04a0ec7bf8
commit
078e42d8f8
3 changed files with 35 additions and 0 deletions
13
.github/workflows/tests.yml
vendored
Normal file
13
.github/workflows/tests.yml
vendored
Normal 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
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
/node_modules
|
||||||
|
/package-lock.json
|
20
package.json
Normal file
20
package.json
Normal 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"
|
||||||
|
}
|
Loading…
Reference in a new issue