Skip to content

Commit 31d6001

Browse files
ci: run simple tests inside the container
1 parent 6eefb51 commit 31d6001

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ jobs:
4646
docker run --rm opensourcecobol/opensourcecobol4j:latest sh -c "! cobj --version | grep 'unicode/utf-8 support'"
4747
docker run --rm opensourcecobol/opensourcecobol4j:latest sh -c "ocesql --version | grep 'Version $Open_COBOL_ESQL_4J_version'"
4848
49+
- name: Run simple tests inside the container
50+
run: |
51+
docker run -itd --name test_container opensourcecobol/opensourcecobol4j:latest
52+
docker exec test_container sh -c "cd /root/cobol_sample && cobj HELLO.cbl && java HELLO"
53+
docker rm -f test_container
54+
4955
- name: Login to Docker Hub
5056
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && inputs.push_to_dockerhub == true
5157
uses: docker/login-action@v3
@@ -81,6 +87,12 @@ jobs:
8187
run: |
8288
docker images opensourcecobol/opensourcecobol4j:utf8-"$version_string_prefix" --format "table {{.Repository}}:{{.Tag}}\t{{.Size}}"
8389
90+
- name: Run simple tests inside the container
91+
run: |
92+
docker run -itd --name test_container opensourcecobol/opensourcecobol4j:utf8-"$version_string_prefix"
93+
docker exec test_container sh -c "cd /root/cobol_sample && cobj HELLO.cbl && java HELLO"
94+
docker rm -f test_container
95+
8496
- name: Check the version of installed software
8597
run: |
8698
docker run --rm opensourcecobol/opensourcecobol4j:utf8-"$version_string_prefix" sh -c "cobj --version | grep 'opensource COBOL 4J $opensource_COBOL_4J_version'"

0 commit comments

Comments
 (0)