Skip to content

Commit

Permalink
chore: added unit and e2e tests ci/cd pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
anirbmuk committed May 21, 2023
1 parent 884663e commit 4227cc2
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/app-push-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
workflow_dispatch:

jobs:
install:
install-check:
runs-on: ubuntu-latest

steps:
Expand All @@ -28,28 +28,17 @@ jobs:
if: steps.cache-node-modules-pre.outputs.cache-hit != 'true'
run: npm i

check:
needs: [install]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-build-thingstodo-node-modules-${{ hashFiles('package-lock.json') }}

- name: Check linting
run: npm run lint

- name: Run unit tests
run: npm run test:headless

- name: Run e2e tests
run: cypress install && npm run ci:test-e2e
run: npm run ci:test-e2e

build:
needs: [check]
needs: [install-check]
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 4227cc2

Please sign in to comment.