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:
commit
06970b1024
2 changed files with 23 additions and 2 deletions
21
.github/workflows/ruby.yml
vendored
21
.github/workflows/ruby.yml
vendored
|
@ -18,6 +18,25 @@ permissions:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: none
|
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
|
||||||
|
|
|
@ -3,7 +3,9 @@ require 'fog/core/credentials'
|
||||||
module Fog
|
module Fog
|
||||||
class << self
|
class << self
|
||||||
def available_providers
|
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
|
end
|
||||||
|
|
||||||
def registered_providers
|
def registered_providers
|
||||||
|
|
Loading…
Reference in a new issue