Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/run-all-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,24 @@ jobs:
with:
swift-version: "6.1"

- name: Restore Build Cache
id: cache-build-restore
uses: actions/cache/restore@v4
with:
key: tests-build-cache-${{ hashFiles('Package.resolved') }}
path: .build

- name: Run All Tests
uses: GetAutomaApp/opensource-actions/swifttesting@main
with:
compose: "true"

- name: Save Build Cache
id: cache-build-save
uses: actions/cache/save@v4
with:
path: .build
key: ${{ steps.cache-build-restore.outputs.cache-primary-key }}

env:
PATH: "/usr/local/bin:/usr/bin:/bin"
17 changes: 14 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
httpd:
image: httpd
Expand All @@ -7,6 +6,11 @@ services:
- ./TestAssets:/usr/local/apache2/htdocs/
ports:
- "80:80"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
timeout: 10s
retries: 3

selenium:
image: selenium/standalone-chrome:4.2.1-20220531
Expand All @@ -16,6 +20,11 @@ services:
- 7900:7900
environment:
- SE_NODE_MAX_SESSIONS=4
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4444/status"]
interval: 30s
timeout: 10s
retries: 3

swift_web_driver:
&SwiftWebDriver
Expand All @@ -28,8 +37,10 @@ services:
SELENIUM_URL: http://localhost:4444
tty: true
depends_on:
- selenium
- httpd
selenium:
condition: service_healthy
httpd:
condition: service_healthy

build:
<<: *SwiftWebDriver
Expand Down
Loading