beaker-docker 1.2.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ce1f4aae26967ce3b8f4d3d24db2a23c2a09b19a749d40bdd7c731d64201f3b
4
- data.tar.gz: 711d8f36b0f39494206dbf6c06ffc602f213ad8681ba423529d413240c3d9c9c
3
+ metadata.gz: 0d52bba21bf02a7a3f1377a20e05315c36eb616bd37b5a1094c51718a2e0a770
4
+ data.tar.gz: c21653ddc0b556a1e7be7adaf661c9943fd14a135248bd8ad5f13cc4d89e1d27
5
5
  SHA512:
6
- metadata.gz: b7c52174a22413d6aa3a99cd0c9e98e8c3cef1c4f973edf9c3a0bd5c4c5e1c854c87c5147310e93ea387bb08ea1a11e6cd71d4dd44dd291db73619f2663f29bc
7
- data.tar.gz: 13bf5b863f187e020040ac56504bae971bc0f27ae07ccd4e598325762782a269d56297cacd00b732a0fdd25e89d746aa7d7193aa8234f225c94c20d304a28ace
6
+ metadata.gz: 58d7e309ae26e61d7091d203ee393bd822557b765ba20bd2a5e1ab2905dacbb205bb11de64637c399fd057ae4b3950b58ba18f4e93f7c42f2a59183cd61936a7
7
+ data.tar.gz: 7f172a3c5d75e09ca35128e466fa96e59b820cd75317c828330375ea712ebbcdf0eb2f9fc8ee86ef51e293b5b2370bcd86a12b84eb61542e8f6f1d042711bdbf
@@ -1,8 +1,17 @@
1
1
  version: 2
2
2
  updates:
3
+ # raise PRs for gem updates
3
4
  - package-ecosystem: bundler
4
5
  directory: "/"
5
6
  schedule:
6
7
  interval: daily
7
8
  time: "13:00"
8
9
  open-pull-requests-limit: 10
10
+
11
+ # Maintain dependencies for GitHub Actions
12
+ - package-ecosystem: github-actions
13
+ directory: "/"
14
+ schedule:
15
+ interval: daily
16
+ time: "13:00"
17
+ open-pull-requests-limit: 10
@@ -10,7 +10,7 @@ jobs:
10
10
  runs-on: ubuntu-latest
11
11
  if: github.repository_owner == 'voxpupuli'
12
12
  steps:
13
- - uses: actions/checkout@v2
13
+ - uses: actions/checkout@v3
14
14
  - name: Install Ruby 3.0
15
15
  uses: ruby/setup-ruby@v1
16
16
  with:
@@ -8,6 +8,24 @@ env:
8
8
  BUNDLE_WITHOUT: release
9
9
 
10
10
  jobs:
11
+ lint:
12
+ runs-on: ubuntu-latest
13
+ strategy:
14
+ fail-fast: true
15
+ matrix:
16
+ include:
17
+ - ruby: "2.7"
18
+ name: Lint - Ruby ${{ matrix.ruby }}
19
+ steps:
20
+ - uses: actions/checkout@v3
21
+ - name: Install Ruby ${{ matrix.ruby }}
22
+ uses: ruby/setup-ruby@v1
23
+ with:
24
+ ruby-version: ${{ matrix.ruby }}
25
+ bundler-cache: true
26
+ - name: lint
27
+ run: bundle exec rake lint
28
+
11
29
  rspec:
12
30
  runs-on: ubuntu-latest
13
31
  strategy:
@@ -24,7 +42,7 @@ jobs:
24
42
  COVERAGE: ${{ matrix.coverage }}
25
43
  name: RSpec - Ruby ${{ matrix.ruby }}
26
44
  steps:
27
- - uses: actions/checkout@v2
45
+ - uses: actions/checkout@v3
28
46
  - name: Install Ruby ${{ matrix.ruby }}
29
47
  uses: ruby/setup-ruby@v1
30
48
  with:
@@ -44,7 +62,7 @@ jobs:
44
62
  - "2.6"
45
63
  name: Docker - Ruby ${{ matrix.ruby }}
46
64
  steps:
47
- - uses: actions/checkout@v2
65
+ - uses: actions/checkout@v3
48
66
  - name: Install Ruby ${{ matrix.ruby }}
49
67
  uses: ruby/setup-ruby@v1
50
68
  with:
@@ -67,6 +85,24 @@ jobs:
67
85
  - name: Run acceptance tests
68
86
  run: bundle exec rake test:acceptance
69
87
 
88
+ beaker_in_container:
89
+ runs-on: ubuntu-latest
90
+ name: Docker - Beaker in container connection test
91
+ steps:
92
+ - uses: actions/checkout@v3
93
+ # use this and not container key from gha to not have a docker network from github
94
+ - name: Run Beaker in docker container
95
+ uses: addnab/docker-run-action@v3
96
+ with:
97
+ image: puppet/puppet-dev-tools:2023-02-24-1bca42e
98
+ options: -v ${{ github.workspace }}:/work
99
+ run: |
100
+ cd /work
101
+ ls -la
102
+ bundle install
103
+ export DOCKER_IN_DOCKER=true
104
+ bundle exec rake test:acceptance
105
+
70
106
  podman:
71
107
  runs-on: ubuntu-latest
72
108
  strategy:
@@ -76,7 +112,7 @@ jobs:
76
112
  - "2.6"
77
113
  name: Podman - Ruby ${{ matrix.ruby }}
78
114
  steps:
79
- - uses: actions/checkout@v2
115
+ - uses: actions/checkout@v3
80
116
  - name: Install Ruby ${{ matrix.ruby }}
81
117
  uses: ruby/setup-ruby@v1
82
118
  with:
data/.gitignore CHANGED
@@ -23,3 +23,4 @@ doc
23
23
  # Vagrant folder
24
24
  .vagrant/
25
25
  .vagrant_files/
26
+ vendor/bundle
data/.rubocop.yml ADDED
@@ -0,0 +1,30 @@
1
+ # The behavior of RuboCop can be controlled via the .rubocop.yml
2
+ # configuration file. It makes it possible to enable/disable
3
+ # certain cops (checks) and to alter their behavior if they accept
4
+ # any parameters. The file can be placed either in your home
5
+ # directory or in some project directory.
6
+ #
7
+ # RuboCop will start looking for the configuration file in the directory
8
+ # where the inspected file is and continue its way up to the root directory.
9
+ #
10
+ # See https://docs.rubocop.org/rubocop/configuration
11
+ ---
12
+ inherit_from: .rubocop_todo.yml
13
+
14
+ require:
15
+ - rubocop-performance
16
+ - rubocop-rake
17
+ - rubocop-rspec
18
+
19
+ AllCops:
20
+ NewCops: enable
21
+ DisplayCopNames: true
22
+ ExtraDetails: true
23
+ DisplayStyleGuide: true
24
+ TargetRubyVersion: '2.4'
25
+ Exclude:
26
+ - vendor/**/*
27
+
28
+ # Disable temporarily
29
+ Style/HashSyntax:
30
+ Enabled: false