Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A administrate
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 96
    • Issues 96
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 32
    • Merge requests 32
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • thoughtbot, inc.
  • administrate
  • Merge requests
  • !1932

Add a basic GitHub Actions CI workflow

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Nick Charlton requested to merge nc-switch-to-github-actions into main Mar 06, 2021
  • Overview 4
  • Commits 1
  • Pipelines 0
  • Changes 3

This is the closest absolute conversation from the original CircleCI 2.0 version as possible. Main differences:

  • Actions' Postgres container requires a password or otherwise doesn't start (see SO answer),
  • Ports are explicitly exported,
  • Actions has a stronger, built-in approach to service health,
  • Using the "global" environment variables stops us having to repeat the Postgres config multiple times,

https://docs.github.com/en/actions/guides/building-and-testing-ruby https://docs.github.com/en/actions/guides/creating-postgresql-service-containers https://docs.github.com/en/actions/reference/environment-variables#about-environment-variables https://docs.github.com/en/actions/guides/creating-redis-service-containers#running-jobs-directly-on-the-runner-machine https://stackoverflow.com/a/60618750/83386 https://www.postgresql.org/docs/9.5/libpq-envars.html

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: nc-switch-to-github-actions