1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #4082 from fog/libcurldev

add libcurldev to github actions setup for fog-aliyun
This commit is contained in:
Wesley Beary 2022-10-27 11:00:58 -05:00 committed by GitHub
commit 06970b1024
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 2 deletions

View file

@ -18,6 +18,25 @@ permissions:
jobs:
test:
permissions:
contents: none
uses: fog/.github/.github/workflows/ruby.yml@v1.1.0
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.5', '2.6', '2.7', '3.0', '3.1', 'head']
continue-on-error: ${{ matrix.ruby-version == 'head' }}
steps:
- uses: actions/checkout@v2.4.0
- name: Set up dependencies
run: sudo apt-get install 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 tests
run: bundle exec rake

View file

@ -3,7 +3,9 @@ require 'fog/core/credentials'
module Fog
class << self
def available_providers
@available_providers ||= Fog.providers.values.select {|provider| Kernel.const_get(provider).try(:available?)}.sort
available_providers ||= Fog.providers.values.select do |provider|
Kernel.const_defined?(provider) && Kernel.const_get(provider).try(:available?)
end.sort
end
def registered_providers