From b73f8636bafed3cb34feab4aecc6432061daa0f7 Mon Sep 17 00:00:00 2001 From: John Hildenbiddle Date: Tue, 21 Jul 2020 11:37:24 -0400 Subject: [PATCH] Added Jest unit and e2e tests to Github workflows --- .github/workflows/e2e.yml | 36 ++++++++++++++++++------------------ .github/workflows/unit.yml | 36 ++++++++++++++++++------------------ 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 09fd229f..7eb303d3 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -1,14 +1,14 @@ name: Testing the e2e test suites -on: +on: push: - branches: - - master - - develop + branches: + - master + - develop pull_request: - branches: - - master - - develop + branches: + - master + - develop jobs: build: @@ -18,14 +18,14 @@ jobs: node-version: [10.x, 12.x, 13.x] steps: - - uses: actions/checkout@v1 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - name: bootstrap - run: npm run bootstrap - - name: Build - run: npm run build - - name: end to end - run: npm run test:e2e + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: bootstrap + run: npm run bootstrap + - name: Build + run: npm run build + - name: end to end + run: npm run test:e2e && npm run test:jest-e2e diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 45c001f7..169fa6f4 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -1,14 +1,14 @@ name: Unit tests Suite -on: +on: push: - branches: - - master - - develop + branches: + - master + - develop pull_request: - branches: - - master - - develop + branches: + - master + - develop jobs: build: @@ -18,14 +18,14 @@ jobs: node-version: [10.x, 12.x, 13.x] steps: - - uses: actions/checkout@v1 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - name: bootstrap - run: npm run bootstrap - - name: Build - run: npm run build - - name: Unit tests - run: npm run test + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: bootstrap + run: npm run bootstrap + - name: Build + run: npm run build + - name: Unit tests + run: npm run test && npm run test:jest-unit