File tree Expand file tree Collapse file tree 2 files changed +63
-73
lines changed Expand file tree Collapse file tree 2 files changed +63
-73
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - ' *'
7+ push :
8+ branches :
9+ - main
10+ workflow_call :
11+
12+ jobs :
13+ sqlite :
14+ runs-on : ubuntu-latest
15+ strategy :
16+ matrix :
17+ ruby : ['3.0', '3.1', '3.2', '3.3']
18+ gemfile :
19+ - rails_6.0
20+ - rails_6.1
21+ - rails_7.0
22+ - rails_7.1
23+ # exclude:
24+ # - ruby: '3.0'
25+ # gemfile: 'rails_main'
26+
27+ env :
28+ BUNDLE_GEMFILE : ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
29+ BUNDLE_PATH_RELATIVE_TO_CWD : true
30+
31+ steps :
32+ - uses : actions/checkout@v4
33+
34+ - name : Set up Ruby
35+ uses : ruby/setup-ruby@v1
36+ with :
37+ ruby-version : ${{ matrix.ruby }}
38+ bundler : default
39+ bundler-cache : true
40+ rubygems : latest
41+
42+ - name : Setup Node
43+ uses : actions/setup-node@v4
44+ with :
45+ node-version-file : .node-version
46+ cache : yarn
47+ cache-dependency-path : ' ./test/sample/yarn.lock'
48+
49+ - name : Node version
50+ run : |
51+ node --version
52+
53+ - name : Install NPM packages for sample app
54+ run : |
55+ bundle exec rake app:yarn_install_frozen
56+
57+ - name : StandardRb check
58+ run : bundle exec standardrb
59+
60+ - name : Run tests
61+ run : |
62+ bundle exec rails db:test:prepare
63+ bundle exec rails test
You can’t perform that action at this time.
0 commit comments