From 2f79053d7bc7c9c9561a30dda202b3dcd2b72b90 Mon Sep 17 00:00:00 2001 From: Benjamin Tan Date: Mon, 21 Dec 2020 21:55:19 +0800 Subject: [PATCH] Enable GitHub Actions CI. --- .github/workflows/tests.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 000000000..508f69a5e --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,20 @@ +name: Node.js CI + +on: [push, pull_request] + +jobs: + tests: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm test