From 5497120d6602fba7e9499c8e38244dc3bde9e020 Mon Sep 17 00:00:00 2001 From: Martin Schulze <37703201+martin-schulze-vireso@users.noreply.github.com> Date: Thu, 9 Dec 2021 23:56:24 +0100 Subject: Add Github Action for running tests --- .github/workflows/node.js.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..cd4ae0d --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,23 @@ +# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + cache: 'npm' + - run: npm ci + - run: npm test -- cgit v1.2.3