File tree 1 file changed +37
-3
lines changed
1 file changed +37
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
3
+ concurrency :
4
+ group : " ${{github.workflow}}-${{github.ref}}"
5
+ cancel-in-progress : true
6
+
3
7
on :
4
8
push :
5
- branches :
6
- - main
9
+ branches : [ main ]
7
10
pull_request :
11
+ types : [opened, synchronize]
12
+ branches : [ '*' ]
8
13
9
14
jobs :
10
15
build :
11
16
name : Browser tests
12
17
runs-on : ubuntu-latest
13
18
steps :
14
- - uses : actions/checkout@v3
19
+ - uses : actions/checkout@v4
15
20
- uses : actions/setup-node@v3
16
21
with :
17
22
node-version : 16
18
23
cache : " yarn"
19
24
- name : Install Dependencies
20
25
run : yarn install --frozen-lockfile
21
26
- 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
22
56
23
57
env :
24
58
SAUCE_USERNAME : ${{ secrets.SAUCE_USERNAME }}
You can’t perform that action at this time.
0 commit comments