mirror of
https://github.com/puppetlabs/beaker-vmpooler.git
synced 2026-01-26 02:58:42 -05:00
Merge pull request #19 from puppetlabs/gh-actions
Add some GH-based testing
This commit is contained in:
commit
f6bf085eab
3 changed files with 37 additions and 2 deletions
8
.github/dependabot.yml
vendored
Normal file
8
.github/dependabot.yml
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: bundler
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: daily
|
||||
time: "13:00"
|
||||
open-pull-requests-limit: 10
|
||||
26
.github/workflows/test.yml
vendored
Normal file
26
.github/workflows/test.yml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
name: Test
|
||||
|
||||
on:
|
||||
- pull_request
|
||||
- push
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
ruby:
|
||||
- "2.5"
|
||||
- "2.6"
|
||||
- "2.7"
|
||||
name: Ruby ${{ matrix.ruby }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install Ruby ${{ matrix.ruby }}
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: ${{ matrix.ruby }}
|
||||
bundler-cache: true
|
||||
- name: Run tests
|
||||
run: bundle exec rake test:spec
|
||||
5
Gemfile
5
Gemfile
|
|
@ -1,6 +1,6 @@
|
|||
source ENV['GEM_SOURCE'] || "https://rubygems.org"
|
||||
|
||||
gemspec
|
||||
gemspec :development_group => :acceptance_testing
|
||||
|
||||
|
||||
|
||||
|
|
@ -18,7 +18,8 @@ end
|
|||
# We don't put beaker in as a test dependency because we
|
||||
# don't want to create a transitive dependency
|
||||
group :acceptance_testing do
|
||||
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 3.0')
|
||||
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 4.0')
|
||||
gem "beaker-abs"
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue