Created
July 7, 2020 20:22
-
-
Save chris/95f0a4cb4c0a1bb91a20f9ec8fe1f956 to your computer and use it in GitHub Desktop.
GitHub action to run Go tests with Postgres DB URL
This file contains hidden or 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
steps: | |
- name: Test Go code | |
working-directory: ./go/somemodule | |
run: go test | |
env: | |
CI_DB_URL: postgresql://postgres:password@localhost:5432/your_test_db_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment