Skip to content

Commit 08e50cf

Browse files
drwlgravitystormctran
authored
Get CI to a working state (#959)
* Update to rubocop 1.12.x for newer ruby support * fix: remove deprecated warnings from Bundler * fix: ruby warnings about MAGIC_COMMENTS already defined * fix: Gemfile.lock for integration tests Co-authored-by: Andy Allan <[email protected]> Co-authored-by: Cuong Tran <[email protected]>
1 parent 68f5689 commit 08e50cf

File tree

175 files changed

+375
-3313
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+375
-3313
lines changed

.github/workflows/ci.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,20 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
ruby: ['2.4', '2.5', '2.6']
17+
ruby: ['2.7']
1818

1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v1
21+
uses: actions/checkout@v3
2222

2323
- name: Setup Ruby
2424
uses: ruby/setup-ruby@v1
2525
with:
2626
ruby-version: ${{ matrix.ruby }}
2727
bundler-cache: true
2828

29-
- name: Install sqlite
30-
run: |
31-
sudo apt-get install libsqlite3-dev
32-
3329
- name: Run Tests
34-
run: INTEGRATION_TESTS=1 bundle exec rspec
30+
run: bundle exec rspec
3531

3632
- name: Rubocop
3733
run: bundle exec rubocop

.github/workflows/codeql-analysis.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- scratch/*
88
pull_request:
99
schedule:
10-
- cron: '0 20 * * 7'
10+
- cron: '0 9 * * MON'
1111

1212
jobs:
1313
CodeQL-Build:
@@ -16,7 +16,7 @@ jobs:
1616

1717
steps:
1818
- name: Checkout repository
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
2020
with:
2121
# We must fetch at least the immediate parents so that if this is
2222
# a pull request then we can checkout the head.
@@ -29,15 +29,15 @@ jobs:
2929

3030
# Initializes the CodeQL tools for scanning.
3131
- name: Initialize CodeQL
32-
uses: github/codeql-action/init@v1
32+
uses: github/codeql-action/init@v2
3333
# Override language selection by uncommenting this and choosing your languages
3434
# with:
35-
# languages: go, javascript, csharp, python, cpp, java
35+
languages: ruby
3636

3737
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
3838
# If this step fails, then you should remove it and run the build manually (see below)
3939
- name: Autobuild
40-
uses: github/codeql-action/autobuild@v1
40+
uses: github/codeql-action/autobuild@v2
4141

4242
# ℹ️ Command-line programs to run using the OS shell.
4343
# 📚 https://git.io/JvXDl
@@ -51,4 +51,4 @@ jobs:
5151
# make release
5252

5353
- name: Perform CodeQL Analysis
54-
uses: github/codeql-action/analyze@v1
54+
uses: github/codeql-action/analyze@v2

.rubocop.yml

+5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
inherit_from:
22
- .rubocop_todo.yml
33

4+
require:
5+
- rubocop-rake
6+
- rubocop-rspec
7+
48
AllCops:
59
Exclude:
610
- 'vendor/**/*'
711
- 'spec/fixtures/**/*'
812
- 'tmp/**/*'
913
- 'spec/integration/**/*'
14+
NewCops: enable
1015

1116
Metrics/BlockLength:
1217
Exclude:

0 commit comments

Comments
 (0)