Skip to content

Commit bcaf4de

Browse files
committed
tweak tests for bcr
1 parent 3014dcc commit bcaf4de

File tree

6 files changed

+22
-10
lines changed

6 files changed

+22
-10
lines changed

.github/workflows/presubmit.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
bcr_test_module:
2+
module_path: "examples"
3+
matrix:
4+
bazel: ["7.x", "8.x"]
5+
platform:
6+
- debian10
7+
- ubuntu2004
8+
- macos
9+
- macos_arm64
10+
tasks:
11+
test:
12+
name: "Run test module"
13+
bazel: ${{ bazel }}
14+
platform: ${{ platform }}
15+
test_targets:
16+
- "//..."

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ docker_compose_test(
3737
```yaml
3838
services:
3939
test_container:
40-
image: gcr.io/distroless/static-debian12:debug
40+
image: ubuntu:25.04
4141
entrypoint: ["echo", "Hello World!"]
4242
```
4343

examples/external-image-test/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
services:
1717
test_container:
18-
image: gcr.io/distroless/static-debian12:debug
18+
image: ubuntu:25.04
1919
entrypoint: ["cat", "/resources/hello.txt"]
2020
volumes:
2121
- ./src/test/resources:/resources

examples/pre-compose-up-script-test/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
services:
1717
test_container:
18-
image: gcr.io/distroless/static-debian12:debug
18+
image: ubuntu:25.04
1919
entrypoint: ["cat", "/resources/generated_file.txt"]
2020
volumes:
21-
- ./src/test/resources:/resources
21+
- /tmp/foo:/resources

examples/pre-compose-up-script-test/src/test/resources/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/pre-compose-up-script-test/src/test/resources/setup_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
set -e
33

44
# This file is created as a pre-req to the docker-compose test actually running.
5-
# Locally, the file will always be there but it won't be checked in as it is in .gitignore.
65
# CI will make sure that the file is generated on every execution.
7-
touch generated_file.txt
6+
mkdir -p /tmp/foo
7+
touch /tmp/foo/generated_file.txt

0 commit comments

Comments
 (0)