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