Skip to content

Commit 59f999e

Browse files
authored
Merge pull request #491 from sparklemotion/flavorjones-ci-downstream-active-record
ci: add downstream integration test against Active Record
2 parents a66b31e + fff819f commit 59f999e

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

.github/workflows/downstream.yml

Lines changed: 27 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,31 @@ 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 # active record test suite uses the sqlite3 cli
31+
- uses: actions/cache@v4
32+
with:
33+
path: ports
34+
key: ports-ubuntu-${{ hashFiles('ext/sqlite3/extconf.rb','dependencies.yml') }}
35+
- run: bundle exec rake compile
36+
- name: checkout rails and configure
37+
run: |
38+
git clone --depth 1 --branch main https://github.com/rails/rails
39+
cd rails
40+
bundle install
41+
bundle remove sqlite3
42+
bundle add sqlite3 --path=".."
43+
sed -i 's/^gem "sqlite3".*//' activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
44+
- name: run tests
45+
run: |
46+
cd rails/activerecord
47+
bundle show --paths sqlite3
48+
bundle exec rake test:sqlite3

0 commit comments

Comments
 (0)