Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add version verification to tests #17

Merged
merged 4 commits into from
Jun 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,15 @@ jobs:
uses: ./
with:
version: ${{ matrix.version }}
- name: Print version
run: jolie --version
- name: Verify installed version
run: |
actual_version=$(jolie --version 2>&1 | cut -d ' ' -f 2)
expected_version="${{ matrix.version }}"
if [ "${expected_version}" != "${actual_version}" ]; then
msg="Expected - ${expected_version}. Received - ${actual_version}."
echo "::error title=Unexpected jolie version::${msg}"
exit 1
fi
setup-jolie-alpine:
name: Setup jolie
timeout-minutes: 15
Expand All @@ -57,5 +64,12 @@ jobs:
uses: ./
with:
version: ${{ matrix.version }}
- name: Print version
run: jolie --version
- name: Verify installed version
run: |
actual_version=$(jolie --version 2>&1 | cut -d ' ' -f 2)
expected_version="${{ matrix.version }}"
if [ "${expected_version}" != "${actual_version}" ]; then
msg="Expected - ${expected_version}. Received - ${actual_version}."
echo "::error title=Unexpected jolie version::${msg}"
exit 1
fi
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
distribution: zulu
- uses: fabasoad/setup-jolie-action@v0
with:
version: 1.10.13
version: "1.12.0"
- name: Print version
run: jolie --version
```
Expand All @@ -74,7 +74,7 @@ jobs:
run: apk add --update maven
- uses: fabasoad/setup-jolie-action@v0
with:
version: 1.10.13
version: "1.12.0"
- name: Print version
run: jolie --version
```
Expand All @@ -83,5 +83,5 @@ jobs:

```shell
Run jolie --version
Jolie 1.10.13 (C) 2006-2021 the Jolie developers
Jolie 1.12.0 (C) 2006-2022 the Jolie developers
```