Skip to content

Commit 777d411

Browse files
Mattia Roccobertonblocknotes
authored andcommitted
ci: add SQLite workflow
1 parent 4dcf69a commit 777d411

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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

0 commit comments

Comments
 (0)