Created
April 23, 2022 14:29
-
-
Save s1moe2/525abf98af09594dcad71519d4cc7a99 to your computer and use it in GitHub Desktop.
Run Go tests in ephemeral Docker container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --rm \ | |
--name test-acme \ | |
-v "$(pwd)":/usr/app \ | |
golang:1.18 \ | |
bash -c "cd /usr/app && go test -v ./..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment