Skip to content

Commit ed0cf5f

Browse files
committed
ci: add downstream integration test against Active Record
1 parent a66b31e commit ed0cf5f

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

.github/workflows/downstream.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ concurrency:
55
on:
66
workflow_dispatch:
77
schedule:
8-
- cron: "0 8 * * 1,3,5" # At 08:00 on Monday, Wednesday, and Friday # https://crontab.guru/#0_8_*_*_1,3,5
8+
- cron: "0 8 * * 3" # At 08:00 on Wednesday # https://crontab.guru/#0_8_*_*_3
99
push:
1010
branches:
1111
- main
@@ -18,7 +18,26 @@ on:
1818
- '*'
1919

2020
jobs:
21-
skeleton:
21+
activerecord:
2222
runs-on: ubuntu-latest
2323
steps:
24-
- run: echo hello world
24+
- uses: actions/checkout@v4
25+
- uses: ruby/setup-ruby-pkgs@v1
26+
with:
27+
ruby-version: "3.3"
28+
bundler: latest
29+
bundler-cache: true
30+
apt-get: sqlite3
31+
- run: bundle exec rake compile
32+
- name: checkout rails and configure
33+
run: |
34+
git clone --depth 1 --branch main https://github.com/rails/rails
35+
cd rails
36+
bundle install
37+
bundle remove sqlite3
38+
bundle add sqlite3 --path=".."
39+
sed -i 's/^gem "sqlite3".*//' activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
40+
- name: run tests
41+
run: |
42+
cd rails/activerecord
43+
bundle exec rake test:sqlite3

0 commit comments

Comments
 (0)