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 4227cc2 commit ada6b43
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/app-push-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,9 @@ jobs:

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

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

- name: Install node_modules
if: steps.cache-node-modules-pre.outputs.cache-hit != 'true'
run: npm i
run: npm ci

- name: Check linting
run: npm run lint
Expand All @@ -37,6 +28,15 @@ jobs:
- name: Run e2e tests
run: npm run ci:test-e2e

- uses: actions/checkout@v3

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

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

0 comments on commit ada6b43

Please sign in to comment.