Created
July 11, 2021 17:28
-
-
Save danielabar/0436f43c011136ea6014580af4779d2b to your computer and use it in GitHub Desktop.
Debug Github Actions Medium Post Gist 3
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
# .github/workflows/ci.yml | |
name: CI | |
on: push | |
env: | |
RAILS_ENV: test | |
RACK_ENV: test | |
DATABASE_HOST: "127.0.0.1" | |
REDIS_URL: "redis://127.0.0.1" | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
services: | |
db: | |
image: postgres:13 | |
env: | |
POSTGRES_PASSWORD: its_a_secret | |
POSTGRES_USER: postgres | |
ports: | |
- 5432:5432 | |
volumes: | |
- /home/runner/work/myapp/myapp/init.sql:/docker-entrypoint-initdb.d/init.sql | |
redis: | |
image: redis:6 | |
ports: | |
- 6379:6379 | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v1 | |
- name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 | |
# rest of the steps... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment