Skip to content

Instantly share code, notes, and snippets.

@danielabar
Created July 11, 2021 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielabar/0436f43c011136ea6014580af4779d2b to your computer and use it in GitHub Desktop.
Save danielabar/0436f43c011136ea6014580af4779d2b to your computer and use it in GitHub Desktop.
Debug Github Actions Medium Post Gist 3
# .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