From fe631bdee8ebcf695afa6aece153c57dc69d0081 Mon Sep 17 00:00:00 2001 From: Jon Ursenbach Date: Mon, 31 Aug 2020 15:30:08 -0700 Subject: [PATCH] ci: adding a ci workflow for running tests --- .github/PULL_REQUEST_TEMPLATE.md | 7 +++++++ .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/workflows/ci.yml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..0f65812 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,7 @@ +## 🧰 What's being changed? + +Describe in detail what this PR is for. + +## 🧪 Testing + +Provide as much information as you can on how to test what you've done. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..fab8408 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x] + + steps: + - uses: actions/checkout@v2.3.2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2.1.1 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: npm ci + + - name: Run tests + run: npm test