Skip to content

Commit

Permalink
Rename the name of the test container
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 committed Nov 26, 2024
1 parent a6e56e1 commit 4454680
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ jobs:
env:
GITHUB_ACTIONS_BASH_CONTAINER: 1
run: |
docker run --volume $PWD:/root --network host --detach --name bash bash:${{ matrix.bash_version }} sleep infinity
docker run --volume $PWD:/root --network host --detach --name test_container bash:${{ matrix.bash_version }} sleep infinity
# coreutils includes mktemp
docker exec bash apk add coreutils curl
docker exec test_container apk add coreutils curl
if [ "${{ matrix.sed }}" == "GNU" ]; then
docker exec bash apk add sed
docker exec test_container apk add sed
fi
cargo test --all-targets --all-features
docker rm --force bash
docker rm --force test_container
- name: Run clippy check
run: cargo clippy --all-targets --all-features -- -D warnings
2 changes: 1 addition & 1 deletion src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ impl AmberCompiler {
fn find_bash() -> Option<Command> {
if env::var("GITHUB_ACTIONS_BASH_CONTAINER").is_ok() {
let mut command = Command::new("/usr/bin/docker");
command.args(["exec", "--workdir", "/root", "--user", "405", "bash", "bash"]);
command.args(["exec", "--workdir", "/root", "--user", "405", "test_container", "bash"]);
Some(command)
} else {
let mut command = Command::new("/usr/bin/env");
Expand Down

0 comments on commit 4454680

Please sign in to comment.