beaker-pe 2.11.24 → 2.13.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: e5506b713fe3a5a0438e9a998df4e376596dad60ea22da77b1d963d6e6a8dc04
4
- data.tar.gz: 45b06d23e09975db2c2dd834790a64759bd9d7ccc8fc55660467da71e597dbc2
3
+ metadata.gz: 934e7c2641906bd3aaca40781a7c552d12be45e896f160c26e4bc964756ae6b0
4
+ data.tar.gz: 2e9b89d83d9ca76714f46eb76b72c33828161db472bece39d27838241eef3ce0
5
5
  SHA512:
6
- metadata.gz: ccec28cee13cb65455533cd40bc4b867681cfca40081a54a86cc21c0e531add6624acfb7afb53e80e8b95fbff86f8bd4ea59f65b1c4c9a3ef37aac0ec67ea3f8
7
- data.tar.gz: da7d560c879a497c618870caf3b67ce87abad80ec9015d9bc4214b9358fa2ffabd155f021a8eb9c5befd9c44e61f51e590e5afad81bbadbfcb5d545be452d6da
6
+ metadata.gz: 73ffbaebf8976434a9cfef52bd2a3c5b3eb41f71b06408cabf5dce2672676bb1e60ba7f4b3d5d02bf338e765a78370d607a2f774b702da2b39f9f49cb45b0aa5
7
+ data.tar.gz: '09702769af3deb2e6e798f6baf3a045d94201e91c680e55b1058d24461a82c96f81a3547f0aa5bb0782c2e90ecc0a81839ccfbf2730668ed746be7b0da199a22'
@@ -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