File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ name : Specs Rails 7.2 SQLite
3+
4+ on :
5+ pull_request :
6+ branches : [main]
7+ push :
8+ branches : [main]
9+
10+ jobs :
11+ tests :
12+ runs-on : ubuntu-latest
13+
14+ strategy :
15+ matrix :
16+ ruby : ['3.3']
17+ gemfile : ['rails_7_2_sqlite']
18+
19+ env :
20+ BUNDLE_GEMFILE : ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
21+ DB_TEST : sqlite
22+ RAILS : ' 7.0'
23+
24+ steps :
25+ - name : Install lib VIPS
26+ run : sudo apt-get install -y libvips-dev
27+
28+ - name : Checkout repository
29+ uses : actions/checkout@v4
30+
31+ - name : Set up Ruby
32+ uses : ruby/setup-ruby@v1
33+ with :
34+ ruby-version : ${{ matrix.ruby }}
35+ bundler-cache : true
36+
37+ - name : Database setup
38+ run : bundle exec rails db:create db:migrate
39+
40+ - name : Run tests
41+ run : bundle exec rspec --profile
42+
43+ - name : Code Climate test coverage
44+ uses : paambaati/codeclimate-action@v3.0.0
45+ env :
46+ CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
47+ with :
48+ coverageLocations : |
49+ ${{github.workspace}}/coverage/lcov/active_storage_db.lcov:lcov
50+
51+ # - name: Upload coverage results
52+ # uses: actions/upload-artifact@main
53+ # if: always()
54+ # with:
55+ # name: coverage-report
56+ # path: coverage/index.html
You can’t perform that action at this time.
0 commit comments