File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Continuous Integration
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches : main
7+ pull_request :
8+ branches : main
9+
10+ jobs :
11+ test :
12+ runs-on : ubuntu-20.04
13+
14+ strategy :
15+ matrix :
16+ ruby : [2.7.0, 3.0.1]
17+ gemfile :
18+ - gemfiles/jekyll_3.7.x.gemfile
19+ - gemfiles/jekyll_4.x.x.gemfile
20+
21+ env :
22+ BUNDLE_GEMFILE : ${{ matrix.gemfile }}
23+ # CC_TEST_REPORTER_ID: 9a84a9f695de3b120b6fcead4e089b45420f7518fb2123dc5424f862d381c4ff
24+
25+ steps :
26+ - name : Checkout code
27+ uses : actions/checkout@v4
28+
29+ - name : Set up Ruby
30+ uses : ruby/setup-ruby@v1
31+ with :
32+ ruby-version : ${{ matrix.ruby }}
33+ bundler-cache : true
34+ bundler : 2.2.18
35+
36+ # - name: Download Code Climate test reporter
37+ # run: |
38+ # curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > cc-test-reporter
39+ # chmod +x cc-test-reporter
40+ # ./cc-test-reporter before-build
41+
42+ - name : Run tests
43+ run : bundle exec rake spec rubocop
44+
45+ # - name: Upload coverage to Code Climate
46+ # if: always()
47+ # run: ./cc-test-reporter after-build --exit-code ${{ job.status == 'success' && 0 || 1 }}
You can’t perform that action at this time.
0 commit comments