Skip to content

Instantly share code, notes, and snippets.

@chris
Created July 7, 2020 20:22
Show Gist options
  • Save chris/95f0a4cb4c0a1bb91a20f9ec8fe1f956 to your computer and use it in GitHub Desktop.
Save chris/95f0a4cb4c0a1bb91a20f9ec8fe1f956 to your computer and use it in GitHub Desktop.
GitHub action to run Go tests with Postgres DB URL
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