Skip to content

Commit

Permalink
fix(ci): PHP version
Browse files Browse the repository at this point in the history
  • Loading branch information
leocavalcante committed Dec 4, 2023
1 parent b542e48 commit 0fc7020
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ jobs:
tags: opencodeco/phpctl:php${{ matrix.php }}
-
name: Test
env:
PHP_VERSION: ${{ matrix.php }}
PHPCTL_TTY: --label=no-tty
run: |
PHPCTL_TTY="--label=no-tty" ./lib/bashunit ./tests/
./lib/bashunit ./tests/
-
name: Build and push
uses: docker/build-push-action@v5
Expand Down
2 changes: 1 addition & 1 deletion tests/docker_test.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function test_run_echoes_run_command() {
assert_matches "^docker run --rm -v (.*) -w /opt --entrypoint php --label=no-tty opencodeco/phpctl:php82$" "$(./phpctl run)"
assert_matches "^docker run --rm -v (.*) -w /opt --entrypoint php --label=no-tty opencodeco/phpctl:php(82|83)$" "$(./phpctl run)"
}

0 comments on commit 0fc7020

Please sign in to comment.