Skip to content

Commit

Permalink
fix(ops): refactor e2e into file
Browse files Browse the repository at this point in the history
  • Loading branch information
Orta21 committed Aug 7, 2023
1 parent f8b4798 commit 0388502
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/_e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Reusable e2e workflow for API

on:
workflow_call:

jobs:
deploy:
steps:
- name: Run Tests
run: npm run test
working-directory: ${{ inputs.path }}
6 changes: 1 addition & 5 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,7 @@ jobs:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

e2e-tests:
name: E2E Tests
steps:
- name: Run Tests
run: npm run test
working-directory: ${{ inputs.path }}
uses: ./.github/workflows/_e2e.yml
secrets:
TEST_API_KEY: ${{ vars.TEST_API_KEY_STAGING }}

Expand Down

0 comments on commit 0388502

Please sign in to comment.