Skip to content

Commit abacea8

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

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,17 @@ 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-
34+
3535
- name: Copy Docker image
3636
run: |
3737
docker tag opensourcecobol/opensourcecobol4j:"$version_string_prefix" opensourcecobol/opensourcecobol4j:latest
3838
39+
- name: Check the version of installed software
40+
run: |
41+
docker run --rm opensourcecobol/opensourcecobol4j:latest sh -c "cobj --version | grep 'opensource COBOL 4J $opensource_COBOL_4J_version'"
42+
docker run --rm opensourcecobol/opensourcecobol4j:latest sh -c "! cobj --version | grep 'unicode/utf-8 support'"
43+
docker run --rm opensourcecobol/opensourcecobol4j:latest sh -c "ocesql --version | grep 'Version $Open_COBOL_ESQL_4J_version'"
44+
3945
- name: Login to Docker Hub
4046
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && inputs.push_to_dockerhub == 'true'
4147
uses: docker/login-action@v3
@@ -65,7 +71,12 @@ jobs:
6571
- name: Build a docker image
6672
run: |
6773
docker build -t opensourcecobol/opensourcecobol4j:utf8-"$version_string_prefix" . -f utf8.Dockerfile \
68-
--build-arg opensource_COBOL_4J_version="$opensource_COBOL_4J_version" \
74+
--build-arg opensource_COBOL_4J_version="$opensource_COBOL_4J_version"
75+
76+
- name: Check the version of installed software
77+
run: |
78+
docker run --rm opensourcecobol/opensourcecobol4j:utf8-"$version_string_prefix" sh -c "cobj --version | grep 'opensource COBOL 4J $opensource_COBOL_4J_version'"
79+
docker run --rm opensourcecobol/opensourcecobol4j:utf8-"$version_string_prefix" sh -c "cobj --version | grep 'unicode/utf-8 support'"
6980
7081
- name: Login to Docker Hub
7182
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && inputs.push_to_dockerhub == 'true'

0 commit comments

Comments
 (0)