File tree Expand file tree Collapse file tree 2 files changed +75
-119
lines changed
Expand file tree Collapse file tree 2 files changed +75
-119
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ schedule :
6+ - cron : " 0 3 * * 0"
7+
8+ jobs :
9+ lint :
10+ runs-on : ubuntu-latest
11+ env :
12+ BUNDLE_GEMFILE : gemfiles/Gemfile.rubocop
13+ steps :
14+ - uses : actions/checkout@v4
15+ - uses : ruby/setup-ruby@v1
16+ with :
17+ ruby-version : 3.3
18+ bundler-cache : true
19+ - run : bundle exec rake lint
20+
21+ test :
22+ runs-on : ubuntu-latest
23+ strategy :
24+ fail-fast : false
25+ matrix :
26+ ruby :
27+ [
28+ " 2.2" ,
29+ " 2.3" ,
30+ " 2.4" ,
31+ " 2.5" ,
32+ " 2.6" ,
33+ " 2.7" ,
34+ " 3.0" ,
35+ " 3.1" ,
36+ " 3.2" ,
37+ " 3.3" ,
38+ " 3.4" ,
39+ ruby,
40+ jruby,
41+ ]
42+ include :
43+ - ruby : ruby
44+ gemfile : gemfiles/Gemfile.minitest.latest
45+ test_env : MOCHA_RUN_INTEGRATION_TESTS=minitest
46+ - ruby : ruby
47+ gemfile : gemfiles/Gemfile.test-unit.latest
48+ test_env : MOCHA_RUN_INTEGRATION_TESTS=test-unit
49+
50+ env :
51+ BUNDLE_GEMFILE : ${{ matrix.gemfile || 'Gemfile' }}
52+ RUBYOPT : ${{ matrix.ruby != '2.2' && '--enable-frozen-string-literal' || '' }}
53+
54+ steps :
55+ - uses : actions/checkout@v4
56+
57+ - uses : ruby/setup-ruby@v1
58+ with :
59+ ruby-version : ${{ matrix.ruby }}
60+ bundler-cache : true
61+
62+ - name : Run tests
63+ shell : bash -e {0}
64+ run : ${{ matrix.test_env }} bundle exec rake test 2>&1 | tee >(grep -q "warning:" && exit 1)
65+
66+ - name : Performance tests
67+ if : matrix.ruby == 'ruby' && !matrix.gemfile
68+ run : bundle exec rake test:performance 2>&1 | tee >(grep -q "warning:" && exit 1)
69+
70+ - name : Generate docs
71+ if : matrix.ruby == 'ruby' && !matrix.gemfile
72+ env :
73+ RUBYOPT : --disable-frozen-string-literal
74+ MOCHA_GENERATE_DOCS : 1
75+ run : bundle exec rake docs docs:coverage
You can’t perform that action at this time.
0 commit comments