-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1002 Bytes
/
test.yml
File metadata and controls
37 lines (31 loc) · 1002 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: test.yml
on:
workflow_dispatch:
push:
branches:
- main
paths:
- .github/workflows/test.yml
- src/**
- Cargo.lock
pull_request:
branches:
- main
jobs:
test:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Build Images
run: |
docker build -t goslar/sessiondriver:latest -f ./Dockerfile .
docker build -t goslar/sessiondriver-firefox:latest -f ./Dockerfile-SessionDriver-Firefox .
- name: Detach Container
run: docker run -d --name=sessiondriver-firefox -p 4444:4444 -e RUST_LOG=debug goslar/sessiondriver-firefox:latest
- name: Check Health
run: timeout 60s sh -c 'until docker ps | grep sessiondriver-firefox | grep -q healthy; do echo "Waiting for container to be healthy..."; sleep 2; done'
- uses: dtolnay/rust-toolchain@1.95.0
- name: Test
run: cargo test --verbose