Skip to content

Commit

Permalink
Remove GH community action (#361)
Browse files Browse the repository at this point in the history
* Remove deprecated community Testcafe action

* Fix workflow syntax error

* Need x server for linux tests

* Run headless browser

* Cleanup

* Set working dir
  • Loading branch information
jabrah authored Dec 14, 2023
1 parent 4582d50 commit c655f90
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/actions/acceptance-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ inputs:
runs:
using: composite
steps:
- run: |
echo "Set timeouts: ${{ inputs.timeouts }}"
shell: bash
- name: Append hosts file to enable "pass.local" on localhost
shell: bash
run: echo "127.0.0.1 pass.local" | sudo tee -a /etc/hosts
Expand All @@ -31,11 +35,19 @@ runs:
path: pass-acceptance-testing

- name: Run acceptance tests
uses: DevExpress/testcafe-action@latest
with:
version: "3.3.0"
args: "'chrome --ignore-certificate-errors --allow-insecure-localhost' --hostname localhost ./pass-acceptance-testing/tests/*Tests.js --selector-timeout ${{ inputs.timeouts}} --assertion-timeout ${{ inputs.timeouts}} --ajax-request-timeout ${{ inputs.timeouts}}"
shell: bash
working-directory: pass-acceptance-testing
run: |
yarn install --frozen-lockfile
npx testcafe \
'chrome:headless --ignore-certificate-errors --allow-insecure-localhost' \
--hostname localhost \
tests/*Tests.js \
--selector-timeout ${{ inputs.timeouts}} \
--assertion-timeout ${{ inputs.timeouts}} \
--ajax-request-timeout ${{ inputs.timeouts}}
- name: Stop pass-docker
if: always()
shell: bash
run: docker compose down -v
run: docker compose -f docker-compose.yml -f eclipse-pass.local.yml down -v

0 comments on commit c655f90

Please sign in to comment.