Skip to content

Commit

Permalink
Moved the deploy section from the workflow to a sh script and moved e…
Browse files Browse the repository at this point in the history
…nv variables from steps to job config section
  • Loading branch information
rafal-k committed Apr 23, 2024
1 parent 86796f1 commit 51abc1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
CI: false
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
DEBUG: 1
HOME: /root
defaults:
run:
shell: sh
Expand All @@ -64,17 +65,12 @@ jobs:
submodules: true
- name: Deploy
run: |
set -e
DEFAULT_ENV=""
POS_ENV="${1:-$DEFAULT_ENV}"
pos-cli deploy $POS_ENV
./private/tests/scripts/deploy.sh
- name: Run e2e tests
run: |
set -e
npm link @playwright/test
npx playwright test
env:
HOME: /root
cleanup:
if: ${{ always() }}
Expand Down
4 changes: 4 additions & 0 deletions modules/core/private/tests/scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
set -e
DEFAULT_ENV=""
POS_ENV="${1:-$DEFAULT_ENV}"
pos-cli deploy $POS_ENV

0 comments on commit 51abc1e

Please sign in to comment.