Skip to content

Commit 55ef9be

Browse files
authored
Merge pull request #1235 from basecamp/flavorjones/rails-integration-tests
ci: integration test with Action Text
2 parents 69c6664 + 5c8ef0a commit 55ef9be

File tree

1 file changed

+37
-3
lines changed

1 file changed

+37
-3
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,58 @@
11
name: CI
22

3+
concurrency:
4+
group: "${{github.workflow}}-${{github.ref}}"
5+
cancel-in-progress: true
6+
37
on:
48
push:
5-
branches:
6-
- main
9+
branches: [ main ]
710
pull_request:
11+
types: [opened, synchronize]
12+
branches: [ '*' ]
813

914
jobs:
1015
build:
1116
name: Browser tests
1217
runs-on: ubuntu-latest
1318
steps:
14-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
1520
- uses: actions/setup-node@v3
1621
with:
1722
node-version: 16
1823
cache: "yarn"
1924
- name: Install Dependencies
2025
run: yarn install --frozen-lockfile
2126
- run: bin/ci
27+
rails-tests:
28+
name: Downstream Rails integration tests
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: actions/setup-node@v3
33+
with:
34+
node-version: 16
35+
cache: "yarn"
36+
- uses: ruby/setup-ruby@v1
37+
with:
38+
ruby-version: "3.4"
39+
- name: Install Dependencies
40+
run: yarn install --frozen-lockfile
41+
- name: Packaging
42+
run: yarn build
43+
- name: Clone Rails
44+
run: git clone --depth=1 https://github.com/rails/rails
45+
- name: Configure Rails
46+
run: |
47+
sudo apt install libvips-tools
48+
cd rails
49+
yarn install --frozen-lockfile
50+
bundle add action_text-trix --path ".."
51+
bundle show --paths action_text-trix
52+
- name: Action Text tests
53+
run: |
54+
cd rails/actiontext
55+
bundle exec rake test test:system
2256
2357
env:
2458
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}

0 commit comments

Comments
 (0)