From 078e42d8f81400a06d19ed26698921bb521b593a Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Mon, 8 Jun 2020 15:01:23 -0400 Subject: [PATCH] Add automated tests --- .github/workflows/tests.yml | 13 +++++++++++++ .gitignore | 2 ++ package.json | 20 ++++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 .github/workflows/tests.yml create mode 100644 .gitignore create mode 100644 package.json 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/package.json b/package.json new file mode 100644 index 0000000..4b4e7a8 --- /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": { + "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" +}