Skip to content

Commit f0c372d

Browse files
ci: add checks of versions of installed software
1 parent 0576c64 commit f0c372d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ jobs:
3131
docker build -t opensourcecobol/opensourcecobol4j:"$version_string_prefix" . \
3232
--build-arg opensource_COBOL_4J_version="$opensource_COBOL_4J_version" \
3333
--build-arg Open_COBOL_ESQL_4J_version="$Open_COBOL_ESQL_4J_version"
34+
35+
- name: Check the version of installed software
36+
run: |
37+
docker run --rm opensourcecobol/opensourcecobol4j:latest "test (cobj --version | grep 'opensource COBOL 4J $opensource_COBOL_4J_version')"
38+
docker run --rm opensourcecobol/opensourcecobol4j:latest "test ! (cobj --version | grep 'unicode/utf-8 support')"
39+
docker run --rm opensourcecobol/opensourcecobol4j:latest "test (ocesql --version | grep 'Version $Open_COBOL_ESQL_4J_version')"
3440
3541
- name: Copy Docker image
3642
run: |
@@ -67,6 +73,11 @@ jobs:
6773
docker build -t opensourcecobol/opensourcecobol4j:utf8-"$version_string_prefix" . -f utf8.Dockerfile \
6874
--build-arg opensource_COBOL_4J_version="$opensource_COBOL_4J_version" \
6975
76+
- name: Check the version of installed software
77+
run: |
78+
docker run --rm opensourcecobol/opensourcecobol4j:utf8-"$version_string_prefix" "test (cobj --version | grep 'opensource COBOL 4J $opensource_COBOL_4J_version')"
79+
docker run --rm opensourcecobol/opensourcecobol4j:utf8-"$version_string_prefix" "test (cobj --version | grep 'unicode/utf-8 support')"
80+
7081
- name: Login to Docker Hub
7182
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && inputs.push_to_dockerhub == 'true'
7283
uses: docker/login-action@v3

0 commit comments

Comments
 (0)