Skip to content

Commit

Permalink
fix[e2e]: use shell=bash
Browse files Browse the repository at this point in the history
  • Loading branch information
foosel committed Nov 12, 2024
1 parent 19de153 commit 1fc3438
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions e2e/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,19 @@ runs:

- name: πŸ— Install OctoPrint
working-directory: ./OctoPrint/
shell: bash
run: |
pip install .
[ -n "${{ inputs.deps }}" ] && pip install --force-reinstall ${{ inputs.deps }}
- name: πŸ— Create base config for test server
shell: bash
run: |
mkdir e2econfig
cp -r OctoPrint/.github/fixtures/with_acl/* e2econfig
- name: πŸ— Install mfa dummy plugin if available
shell: bash
run: |
mfa_dummy="OctoPrint/.github/fixtures/mfa_dummy"
if [ -f "$mfa_dummy" ]; then
Expand All @@ -52,6 +55,7 @@ runs:
- name: πŸ— Prepare Playwright env
working-directory: ./OctoPrint/tests/playwright
shell: bash
run: |
npm ci
PLAYWRIGHT_VERSION=$(npm ls --json @playwright/test | jq --raw-output '.dependencies["@playwright/test"].version')
Expand All @@ -69,26 +73,30 @@ runs:
- name: πŸ— Install Playwright browser binaries & OS dependencies
if: steps.playwright-cache.outputs.cache-hit != 'true'
working-directory: ./OctoPrint/tests/playwright
shell: bash
run: |
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
npx playwright install --with-deps
- name: πŸ— Install Playwright OS dependencies
if: steps.playwright-cache.outputs.cache-hit == 'true'
working-directory: ./OctoPrint/tests/playwright
shell: bash
run: |
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
npx playwright install-deps
- name: 🎭 Run Playwright
working-directory: ./OctoPrint/tests/playwright
shell: bash
run: |
npx playwright test
env:
OCTOPRINT_SERVER_BASE: ${{ github.workspace }}/e2econfig
TEST_MFA: true

- name: πŸ”Ž Check octoprint.log for errors
shell: bash
run: |
log=${{ github.workspace }}/e2econfig/logs/octoprint.log
if grep "\- ERROR \-" $log; then
Expand Down

0 comments on commit 1fc3438

Please sign in to comment.