Skip to content

Commit

Permalink
MANGO-1216 feat(GHA/CI/CD): move to GHA
Browse files Browse the repository at this point in the history
One of the strategic goals is to move away from CircleCI into GitHub
Actions.

See: https://github.com/blinkist/backend-starter-kit/blob/main/docs/adrs/010_github_actions.md
  • Loading branch information
alekgosk committed Jul 22, 2024
1 parent 0cae8df commit fe598be
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 26 deletions.
26 changes: 0 additions & 26 deletions .circleci/config.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on: [ push ]

jobs:
build:
runs-on: ubuntu-latest

services:
postgres:
image: postgres
env:
POSTGRES_DB: myapp_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.3
bundler-cache: true

- name: Bundle Install
run: bundle install --jobs=4 --retry=3 --path=vendor/bundle

- name: Run RSpec
env:
RAILS_ENV: test
RACK_ENV: test
run: bundle exec rspec --format progress spec

0 comments on commit fe598be

Please sign in to comment.