Skip to content

Commit

Permalink
fix[e2e]: different checking logic for server url
Browse files Browse the repository at this point in the history
  • Loading branch information
foosel committed Nov 18, 2024
1 parent 833c4da commit 05d6045
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions e2e/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,28 +39,28 @@ runs:
path: OctoPrint

- name: πŸ— Set up Python ${{ inputs.python }}
if: ${{ inputs.server }} === ""
if: ${{ !inputs.server }}
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python }}

- name: πŸ— Install OctoPrint
if: ${{ inputs.server }} === ""
if: ${{ !inputs.server }}
working-directory: ./OctoPrint/
shell: bash
run: |
pip install ${{ inputs.octoprint }}
[ -z "${{ inputs.deps }}" ] || pip install --force-reinstall ${{ inputs.deps }}
- name: πŸ— Create base config for test server
if: ${{ inputs.server }} === ""
if: ${{ !inputs.server }}
shell: bash
run: |
mkdir e2econfig
cp -r OctoPrint/.github/fixtures/with_acl/* e2econfig
- name: πŸ— Install mfa dummy plugin if available
if: ${{ inputs.server }} === ""
if: ${{ !inputs.server }}
shell: bash
run: |
mfa_dummy="OctoPrint/.github/fixtures/mfa_dummy"
Expand Down Expand Up @@ -104,7 +104,7 @@ runs:
npx playwright install-deps
- name: 🎭 Start server and run Playwright
if: ${{ inputs.server }} === ""
if: ${{ !inputs.server }}
working-directory: ./OctoPrint/tests/playwright
shell: bash
run: |
Expand All @@ -114,7 +114,7 @@ runs:
TEST_MFA: ${{ env.TEST_MFA }}

- name: 🎭 Run Playwright against existing server
if: ${{ inputs.server }} !== ""
if: ${{ inputs.server }}
working-directory: ./OctoPrint/tests/playwright
shell: bash
run: |
Expand Down

0 comments on commit 05d6045

Please sign in to comment.