Skip to content

Commit f003a21

Browse files
committed
ci: integration test with Action Text
1 parent 69c6664 commit f003a21

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,43 @@ jobs:
1111
name: Browser tests
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- uses: actions/setup-node@v3
1616
with:
1717
node-version: 16
1818
cache: "yarn"
1919
- name: Install Dependencies
2020
run: yarn install --frozen-lockfile
2121
- run: bin/ci
22+
rails-tests:
23+
name: Downstream Rails integration tests
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-node@v3
28+
with:
29+
node-version: 16
30+
cache: "yarn"
31+
- uses: ruby/setup-ruby@v1
32+
with:
33+
ruby-version: "3.4"
34+
bundler-cache: true
35+
- name: Install Dependencies
36+
run: yarn install --frozen-lockfile
37+
- name: Packaging
38+
run: yarn build
39+
- name: Clone Rails
40+
run: git clone --depth=1 https://github.com/rails/rails
41+
- name: Configure Rails
42+
run: |
43+
cd rails
44+
yarn install --frozen-lockfile
45+
bundle add action_text-trix --path ".."
46+
bundle show --paths action_text-trix
47+
- name: Action Text tests
48+
run: |
49+
cd rails/actiontext
50+
bundle exec rake test test:system
2251
2352
env:
2453
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}

0 commit comments

Comments
 (0)