beaker-pe 2.11.23 → 2.12.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: 8becd49a23057ad0bd43368413ef30c2902a24904a9049e55ae5a70005f38ba3
4
- data.tar.gz: 9f8d19e850b9a64f007e7096fd733159b7b2e74a064572823cf6efcf501312f1
3
+ metadata.gz: 94445eab6378f475f96f6c1bdf9debbb0b126992fd1fdcab96bd55a474e50240
4
+ data.tar.gz: 6a919c4fd1aba1d8a893c0ab51911692aaac7ebc56d6d55b93be03bf9436a2ad
5
5
  SHA512:
6
- metadata.gz: b286e0c93899aa70cfd61d6729f46c6db9042c407f7c4ee64618cb251738677af21d1f499a746b62eb18d15afd83eebab7dc9e6b9a7b6184cbf2fff3fb53c539
7
- data.tar.gz: a6bb05de8a00d72ef78887b24eea5db7b5835329a2b0d36ded5f2a492890e62d61b0da143377cc5c477561f8db8b30c12fcaba1ad9a206633da971a9aa98a75e
6
+ metadata.gz: 3144fd66f0fa270458cc444b8aa4b8dfd1d77d1c7f031534f7743df3956dea9fdc43004dc3fb241330c1ff6cb4064c9e2fe0eb52a91588354ba1f014dd198172
7
+ data.tar.gz: 93c79d00efca228c7f34bec7fc01048de0015fd57edf0cc1c0f53da077d8645c801d249fc03262c61edf5d03ba5783e73a9628022940bfaa4e7808a83595f0a4
@@ -1,8 +1,13 @@
1
1
  version: 2
2
2
  updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ open-pull-requests-limit: 10
8
+
3
9
  - package-ecosystem: bundler
4
10
  directory: "/"
5
11
  schedule:
6
- interval: daily
7
- time: "13:00"
12
+ interval: "weekly"
8
13
  open-pull-requests-limit: 10
@@ -0,0 +1,95 @@
1
+ name: Tag Release & Push Gem
2
+
3
+ on: workflow_dispatch
4
+
5
+ jobs:
6
+ release:
7
+ name: Validate Docs, Tag, and Push Gem
8
+ runs-on: ubuntu-latest
9
+ if: github.repository == 'puppetlabs/beaker-pe'
10
+
11
+ steps:
12
+ - name: Checkout code
13
+ uses: actions/checkout@v3
14
+ with:
15
+ ref: ${{ github.ref }}
16
+ clean: true
17
+ fetch-depth: 0
18
+
19
+ - name: Get New Version
20
+ id: nv
21
+ run: |
22
+ version=$(grep STRING lib/beaker-pe/version.rb |rev |cut -d "'" -f2 |rev)
23
+ echo "version=$version" >> $GITHUB_OUTPUT
24
+ echo "Found version $version from lib/beaker-pe/version.rb"
25
+
26
+ - name: Get Current Version
27
+ uses: actions/github-script@v6
28
+ id: cv
29
+ with:
30
+ script: |
31
+ const { data: response } = await github.rest.repos.getLatestRelease({
32
+ owner: context.repo.owner,
33
+ repo: context.repo.repo,
34
+ })
35
+ console.log(`The latest release is ${response.tag_name}`)
36
+ return response.tag_name
37
+ result-encoding: string
38
+
39
+ - name: Generate Changelog
40
+ uses: docker://githubchangeloggenerator/github-changelog-generator:1.16.2
41
+ with:
42
+ args: >-
43
+ --future-release ${{ steps.nv.outputs.version }}
44
+ env:
45
+ CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46
+
47
+ - name: Validate Changelog
48
+ run : |
49
+ set -e
50
+ if output=$(git status --porcelain) && [ ! -z "$output" ]; then
51
+ echo "Here is the current git status:"
52
+ git status
53
+ echo
54
+ echo "The following changes were detected:"
55
+ git --no-pager diff
56
+ echo "Uncommitted PRs found in the changelog. Please submit a release prep PR of changes after running './release-prep'"
57
+ exit 1
58
+ fi
59
+
60
+ - name: Generate Release Notes
61
+ uses: docker://githubchangeloggenerator/github-changelog-generator:1.16.2
62
+ with:
63
+ args: >-
64
+ --since-tag ${{ steps.cv.outputs.result }}
65
+ --future-release ${{ steps.nv.outputs.version }}
66
+ --output release-notes.md
67
+ env:
68
+ CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69
+
70
+ - name: Tag Release
71
+ uses: ncipollo/release-action@v1
72
+ with:
73
+ tag: ${{ steps.nv.outputs.version }}
74
+ token: ${{ secrets.GITHUB_TOKEN }}
75
+ bodyfile: release-notes.md
76
+ draft: false
77
+ prerelease: false
78
+
79
+ - name: Set up Ruby 2.7
80
+ uses: actions/setup-ruby@v1
81
+ with:
82
+ version: 2.7.x
83
+
84
+ - name: Build gem
85
+ run: gem build *.gemspec
86
+
87
+ - name: Publish gem
88
+ run: |
89
+ mkdir -p $HOME/.gem
90
+ touch $HOME/.gem/credentials
91
+ chmod 0600 $HOME/.gem/credentials
92
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
93
+ gem push *.gem
94
+ env:
95
+ GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
@@ -0,0 +1,39 @@
1
+ name: Security
2
+ on:
3
+ workflow_dispatch:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ scan:
10
+ name: Mend Scanning
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: checkout repo content
14
+ uses: actions/checkout@v3
15
+ with:
16
+ fetch-depth: 1
17
+ - name: setup ruby
18
+ uses: ruby/setup-ruby@v1
19
+ with:
20
+ ruby-version: 2.7
21
+ # setup a package lock if one doesn't exist, otherwise do nothing
22
+ - name: check lock
23
+ run: '[ -f "Gemfile.lock" ] && echo "package lock file exists, skipping" || bundle lock'
24
+ # install java
25
+ - uses: actions/setup-java@v3
26
+ with:
27
+ distribution: 'temurin' # See 'Supported distributions' for available options
28
+ java-version: '17'
29
+ # download mend
30
+ - name: download_mend
31
+ run: curl -o wss-unified-agent.jar https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar
32
+ - name: run mend
33
+ run: java -jar wss-unified-agent.jar
34
+ env:
35
+ WS_APIKEY: ${{ secrets.MEND_API_KEY }}
36
+ WS_WSS_URL: https://saas-eu.whitesourcesoftware.com/agent
37
+ WS_USERKEY: ${{ secrets.MEND_TOKEN }}
38
+ WS_PRODUCTNAME: RE
39
+ WS_PROJECTNAME: ${{ github.event.repository.name }}
@@ -0,0 +1,23 @@
1
+ name: Testing
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ spec_tests:
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ matrix:
13
+ ruby-version:
14
+ - '2.7'
15
+ steps:
16
+ - uses: actions/checkout@v3
17
+ - name: Set up Ruby
18
+ uses: ruby/setup-ruby@v1
19
+ with:
20
+ ruby-version: ${{ matrix.ruby-version }}
21
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
22
+ - name: Run spec tests
23
+ run: bundle exec rake test:spec
@@ -0,0 +1,4 @@
1
+ project=beaker-pe
2
+ user=puppetlabs
3
+ exclude_labels=maintenance
4
+ since-tag=0.1.1
data/.gitignore CHANGED
@@ -4,7 +4,6 @@ log/*
4
4
  junit
5
5
  acceptance-tests
6
6
  pkg
7
- Gemfile.lock
8
7
  options.rb
9
8
  test.cfg
10
9
  .yardoc