From 4c07847961c5ff0926444d6ba5996964eb636595 Mon Sep 17 00:00:00 2001 From: g2384 Date: Sat, 27 Feb 2021 18:11:46 +0000 Subject: [PATCH] add workflow (#46) * Create ci.yml --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 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..f6b9259 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,18 @@ +name: CI +on: [push, pull_request] +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Test using Node.js + uses: actions/setup-node@v1 + with: + node-version: '12' + - name: npm install, build, and test + run: | + npm ci + npm run build --if-present + npm test + env: + CI: true \ No newline at end of file