From b89946c965087bbac9f1a85cae6e206ff02a627a Mon Sep 17 00:00:00 2001 From: Graham Barber <4955937+puregarlic@users.noreply.github.com> Date: Thu, 21 May 2020 21:17:18 -0700 Subject: [PATCH] Create unit-tests.yml --- .github/workflows/unit-tests.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/unit-tests.yml diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml new file mode 100644 index 0000000..3f41e4d --- /dev/null +++ b/.github/workflows/unit-tests.yml @@ -0,0 +1,25 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Unit tests + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: 14 + - run: npm ci + - run: npm run build --if-present + - run: npm test -- 2.51.2