From 5834acfa6cbada876e6d42eff980badb0f1c68f3 Mon Sep 17 00:00:00 2001 From: Rafe Goldberg Date: Fri, 24 Dec 2021 15:48:26 -0800 Subject: [PATCH] feat(github): run tests --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..6b2e428 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Test +on: [push, pull_request] +jobs: + run-test: + name: Test + if: "!contains(github.event.head_commit.message, 'SKIP CI')" + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: [14.x] + steps: + - name: Checkout branch (${{ github.ref }}) + uses: actions/checkout@master + - name: Configure git + run: | + git config user.name "Action" + git config user.email "rafegoldberg@gmail.com" + - name: Setup node (v${{ matrix.node-version }}) + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: Install packages + run: | + npm ci + - name: Run Tests + run: | + npm test \ No newline at end of file