From 9ded256132b688e133c55c4000fc2f654b70930c Mon Sep 17 00:00:00 2001 From: haad Date: Fri, 30 Dec 2022 12:58:09 +0200 Subject: [PATCH] Add a Github Action config for running tests on all branches on push --- .github/workflows/run-test.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/run-test.yml diff --git a/.github/workflows/run-test.yml b/.github/workflows/run-test.yml new file mode 100644 index 0000000..93482fb --- /dev/null +++ b/.github/workflows/run-test.yml @@ -0,0 +1,18 @@ +--- +name: Run Tests + +on: push + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 'lts/*' + registry-url: https://registry.npmjs.org/ + - name: Install dependencies + run: npm ci + - name: Run tests + run: npm test