From 49792d1b6a0ea566a5b74cb74560c586b534ae53 Mon Sep 17 00:00:00 2001 From: Robat Williams Date: Fri, 15 Dec 2023 16:35:27 +0000 Subject: [PATCH] Run tests on GitHub actions --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ffd0597 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: Node.js CI + +on: + push: + branches: + - 'main' + pull_request: + branches: + - 'main' + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: '20.x' + cache: 'npm' + - run: npm ci + - run: npm test