Skip to content

Commit c655f90

Browse files
authored
Remove GH community action (#361)
* Remove deprecated community Testcafe action * Fix workflow syntax error * Need x server for linux tests * Run headless browser * Cleanup * Set working dir
1 parent 4582d50 commit c655f90

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/actions/acceptance-test/action.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ inputs:
1616
runs:
1717
using: composite
1818
steps:
19+
- run: |
20+
echo "Set timeouts: ${{ inputs.timeouts }}"
21+
shell: bash
22+
1923
- name: Append hosts file to enable "pass.local" on localhost
2024
shell: bash
2125
run: echo "127.0.0.1 pass.local" | sudo tee -a /etc/hosts
@@ -31,11 +35,19 @@ runs:
3135
path: pass-acceptance-testing
3236

3337
- name: Run acceptance tests
34-
uses: DevExpress/testcafe-action@latest
35-
with:
36-
version: "3.3.0"
37-
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}}"
38+
shell: bash
39+
working-directory: pass-acceptance-testing
40+
run: |
41+
yarn install --frozen-lockfile
42+
npx testcafe \
43+
'chrome:headless --ignore-certificate-errors --allow-insecure-localhost' \
44+
--hostname localhost \
45+
tests/*Tests.js \
46+
--selector-timeout ${{ inputs.timeouts}} \
47+
--assertion-timeout ${{ inputs.timeouts}} \
48+
--ajax-request-timeout ${{ inputs.timeouts}}
3849
3950
- name: Stop pass-docker
51+
if: always()
4052
shell: bash
41-
run: docker compose down -v
53+
run: docker compose -f docker-compose.yml -f eclipse-pass.local.yml down -v

0 commit comments

Comments
 (0)