Skip to content

Commit

Permalink
Install dependencies for native gems
Browse files Browse the repository at this point in the history
as a hotfix copy paste the shared workflow
  • Loading branch information
dosas committed Aug 21, 2024
1 parent a343d61 commit 358feb5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,25 @@ permissions:
contents: read

jobs:
Shared:
uses: fog/.github/.github/workflows/ci.yml@v1.4.0
test:

runs-on: ubuntu-latest

strategy:
matrix:
ruby-version: ['2.7', '3.0', '3.1', '3.2', 'head']
continue-on-error: ${{ matrix.ruby-version == 'head' }}

steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install -y --no-install-recommends libcurl4-openssl-dev
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run rubocop
run: bundle exec rake rubocop
- name: Run tests
run: bundle exec rake
4 changes: 2 additions & 2 deletions tests/helpers/succeeds_helper.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module Shindo
class Tests
def succeeds
def succeeds(&block)
test("succeeds") do
!!instance_eval(&Proc.new)
!!instance_eval(&Proc.new(&block))
end
end
end
Expand Down

0 comments on commit 358feb5

Please sign in to comment.