File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 1717 include :
1818 - puppet_version : ' 7'
1919 ruby : ' 2.7'
20+ puppet_forge_token : ' '
2021 - puppet_version : ' 8'
2122 ruby : ' 3.1'
23+ puppet_forge_token : ' YES'
2224
2325 - os : ' ubuntu-latest'
2426 os_type : ' Linux'
@@ -28,22 +30,24 @@ jobs:
2830 os_type : ' Windows'
2931
3032 runs-on : ${{ matrix.os }}
31- env :
32- PUPPET_GEM_VERSION : " source:https://rubygems-puppetcore.puppet.com#~> ${{ matrix.puppet_version }}.0"
3333 steps :
3434 - name : Checkout current PR code
3535 uses : actions/checkout@v4
3636
37+ - name : Add libcurl for ruby 2.7 on ubuntu
38+ if : ${{ matrix.puppet_version == '7' && matrix.os == 'ubuntu-latest' }}
39+ run : |
40+ sudo apt-get update
41+ sudo apt install libcurl4-openssl-dev
42+
3743 - name : Install ruby version ${{ matrix.ruby }}
3844 uses : ruby/setup-ruby@v1
3945 with :
4046 ruby-version : ${{ matrix.ruby }}
4147 bundler-cache : true
4248 env :
43- BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM : forge-key:${{ secrets.PUPPET_FORGE_TOKEN_PUBLIC }}
44-
45- - name : List gems
46- run : cat Gemfile.lock
49+ BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM : forge-key:${{ matrix.puppet_version != '7' && secrets.PUPPET_FORGE_TOKEN_PUBLIC || '' }}
50+ PUPPET_FORGE_TOKEN : ${{ matrix.puppet_forge_token }}
4751
4852 - name : Run unit tests
4953 run : bundle exec rake parallel_spec
You can’t perform that action at this time.
0 commit comments