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 4dd6bf0 commit a987691
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,9 +15,18 @@ 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
run: npm install
if: steps.cache-node-modules-pre.outputs.cache-hit != 'true'
run: npm i

- name: Check linting
run: npm run lint
Expand All @@ -28,15 +37,6 @@ 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 a987691

Please sign in to comment.