Skip to content

Commit 9bb5769

Browse files
committed
fix sqlite3 version and install pre-commit properly
1 parent 9fb04b4 commit 9bb5769

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

.github/workflows/tests.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,15 @@ jobs:
2222
- name: Install dependencies
2323
run: bundle install
2424

25-
- name: Run tests
26-
run: bin/rspec
25+
- name: Install pre-commit
26+
run: |
27+
apt-get update
28+
apt-get install --yes --no-install-recommends python3 python3-pip
29+
pip install pre-commit --break-system-packages
30+
pre-commit install --install-hooks
2731
2832
- name: Run linters
2933
run: pre-commit run --all-files
34+
35+
- name: Run tests
36+
run: bin/rspec

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ gem 'byebug'
77
gem 'rake-release'
88
gem 'rspec'
99
gem 'rubocop'
10-
gem 'sqlite3'
10+
gem 'sqlite3', '~> 1.4'

Gemfile.lock

+2-6
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ GEM
3636
concurrent-ruby (~> 1.0)
3737
json (2.7.2)
3838
language_server-protocol (3.17.0.3)
39-
mini_portile2 (2.8.7)
4039
minitest (5.24.1)
4140
mutex_m (0.2.0)
4241
parallel (1.26.3)
@@ -74,25 +73,22 @@ GEM
7473
rubocop-ast (1.32.3)
7574
parser (>= 3.3.1.0)
7675
ruby-progressbar (1.13.0)
77-
sqlite3 (2.1.0)
78-
mini_portile2 (~> 2.8.0)
79-
sqlite3 (2.1.0-arm64-darwin)
76+
sqlite3 (1.7.3-arm64-darwin)
8077
timeout (0.4.1)
8178
tzinfo (2.0.6)
8279
concurrent-ruby (~> 1.0)
8380
unicode-display_width (2.6.0)
8481

8582
PLATFORMS
8683
arm64-darwin-23
87-
ruby
8884

8985
DEPENDENCIES
9086
batch_update!
9187
byebug
9288
rake-release
9389
rspec
9490
rubocop
95-
sqlite3
91+
sqlite3 (~> 1.4)
9692

9793
BUNDLED WITH
9894
2.5.11

0 commit comments

Comments
 (0)