Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 8 additions & 48 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,51 +9,11 @@ on:
- '*'

jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 40

strategy:
fail-fast: true
matrix:
ruby:
- '2.7'
- '3.0'
- '3.1'
- '3.2'
os:
- ubuntu-20.04
- ubuntu-latest
exclude:
- { os: ubuntu-latest, ruby: '2.7' }
- { os: ubuntu-latest, ruby: '3.0' }
env:
RAILS_ENV: test

name: ${{ matrix.os }} - Ruby ${{ matrix.ruby }}
steps:
- name: Install system dependencies
run: sudo apt-get install graphviz

- name: Checkout code
uses: actions/checkout@v2

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Test
run: |
bundle exec rake spec
bundle exec rake cucumber
bundle exec rake yard

- name: Upload coverage report
uses: actions/upload-artifact@v2
with:
name: coverage-${{ matrix.ruby }}
path: |
coverage/
retention-days: 1
build:
uses: rapid7/metasploit-framework/.github/workflows/shared_gem_verify_rails.yml@master
with:
dependencies: '["graphviz"]'
test_commands: |
bundle exec rake spec
bundle exec rake cucumber
bundle exec rake yard
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ source 'https://rubygems.org'
# development dependencies will be added by default to the :development group.
gemspec

# Temporary, remove once the Rails 7.1 update is complete
# see: https://stackoverflow.com/questions/79360526/uninitialized-constant-activesupportloggerthreadsafelevellogger-nameerror
gem 'concurrent-ruby', '1.3.4'

group :development do
# documentation
gem 'yard'
Expand Down
8 changes: 8 additions & 0 deletions metasploit-concern.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,12 @@ Gem::Specification.new do |s|
# for engine
s.add_runtime_dependency 'railties', '~> 7.0'
s.add_runtime_dependency 'zeitwerk'

# Standard libraries: https://www.ruby-lang.org/en/news/2023/12/25/ruby-3-3-0-released/
%w[
drb
mutex_m
].each do |library|
s.add_runtime_dependency library
end
end
Loading