Skip to content

Commit ba9781b

Browse files
committed
Setup GitHub actions instead of circle CI
1 parent f5369a8 commit ba9781b

File tree

2 files changed

+45
-48
lines changed

2 files changed

+45
-48
lines changed

.circleci/config.yml

-48
This file was deleted.

.github/workflows/ci.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
services:
14+
postgres:
15+
image: postgres:14.13
16+
env:
17+
POSTGRES_DB: rails_contributors_test
18+
POSTGRES_PASSWORD: postgres
19+
ports:
20+
- 5432:5432
21+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
22+
23+
env:
24+
BUNDLE_PATH: vendor/bundle
25+
DATABASE_URL: postgres://postgres:postgres@localhost:5432/rails_contributors_test
26+
27+
steps:
28+
- uses: actions/checkout@v3
29+
30+
- name: Install system dependencies
31+
run: |
32+
sudo apt-get update
33+
sudo apt-get install -y git cmake pkg-config curl libpq-dev tzdata
34+
35+
- name: Clone rails.git
36+
run: git clone --mirror https://github.com/rails/rails.git
37+
38+
- name: Set up Ruby
39+
uses: ruby/setup-ruby@v1
40+
with:
41+
ruby-version: 3.3.4
42+
bundler-cache: true
43+
44+
- name: Run tests
45+
run: bin/rails test

0 commit comments

Comments
 (0)