From 43137bde4f371d7ea778b819e6f30bdc33fffcd4 Mon Sep 17 00:00:00 2001 From: Bryan MacFarlane Date: Thu, 9 Jan 2020 19:42:29 -0500 Subject: [PATCH] add workflow --- .github/workflows/test.yml | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 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..5489972 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,41 @@ +name: toolkit-unit-tests +on: + push: + branches: + - master + paths-ignore: + - '**.md' + pull_request: + paths-ignore: + - '**.md' + +jobs: + + build: + name: Build + + strategy: + matrix: + runs-on: [ubuntu-latest, macOS-latest, windows-latest] + node-version: [8.x, 10.x, 12.x] + fail-fast: false + + runs-on: ${{ matrix.runs-on }} + + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Set Node.js 12.x + uses: actions/setup-node@master + with: + node-version: {{ matrix.node-version }} + + - name: npm install + run: npm install + + - name: Compile + run: npm run build + + - name: npm test + run: npm test