From 170f566c7836e7bdd6bb69a1214d73cdbc593646 Mon Sep 17 00:00:00 2001 From: SpacingBat3 Date: Sun, 17 Nov 2024 22:59:59 +0100 Subject: [PATCH] project: Setup CI/CD for running Node.js tests. --- .github/workflows/node-test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/node-test.yml diff --git a/.github/workflows/node-test.yml b/.github/workflows/node-test.yml new file mode 100644 index 0000000..c70d259 --- /dev/null +++ b/.github/workflows/node-test.yml @@ -0,0 +1,23 @@ +# Workflow that runs Node.js tests on a repository +# TODO: Cache code for faster build times and type processing. +name: Node.js test runner + +on: + # Runs on pushes targeting the default branch + push: + branches: ["master"] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Node.js + uses: actions/setup-node@v3 + - name: Install dependencies + run: "npm ci" + - name: Build project + run: "npm run build" + - name: Run tests + run: "npm test" \ No newline at end of file