forked from microsoft/playwright-java
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 880 Bytes
/
test_docker.yml
File metadata and controls
30 lines (30 loc) · 880 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
name: Test Docker
on:
push:
paths:
- '.github/workflows/test_docker.yml'
- 'Dockerfile*'
branches:
- master
- release-*
pull_request:
paths:
- .github/workflows/test_docker.yml
- Dockerfile.*
- scripts/CLI_VERSION
- '**/pom.xml'
branches:
- master
- release-*
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build Docker image
run: docker build -t playwright-java:localbuild-focal -f Dockerfile.focal .
- name: Test
run: |
CONTAINER_ID="$(docker run --rm --ipc=host -v $(pwd):/root/playwright --name playwright-docker-test -d -t playwright-java:localbuild-focal /bin/bash)"
docker exec "${CONTAINER_ID}" /root/playwright/tools/test-local-installation/create_project_and_run_tests.sh