Skip to content

Commit 1f5a7cf

Browse files
authored
Merge pull request #46 from mhashizume/maint/main/gha-housekeeping
(maint) GitHub Actions Housekeeping
2 parents a0c22af + 33fafa1 commit 1f5a7cf

File tree

3 files changed

+39
-33
lines changed

3 files changed

+39
-33
lines changed

.github/workflows/mend.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Mend Monitor
3+
on:
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
mend_monitor:
9+
if: ${{ github.repository_owner == 'puppetlabs' }}
10+
runs-on: ubuntu-latest
11+
name: Mend Monitor
12+
steps:
13+
- name: Checkout current PR
14+
uses: actions/checkout@v3
15+
- name: Setup Ruby
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: 2.7
19+
- name: Create lock
20+
run: bundle lock
21+
- uses: actions/setup-java@v3
22+
with:
23+
distribution: 'temurin'
24+
java-version: '17'
25+
- name: Download Mend
26+
run: curl -o wss-unified-agent.jar https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar
27+
- name: Run Mend
28+
run: java -jar wss-unified-agent.jar
29+
env:
30+
WS_APIKEY: ${{ secrets.MEND_API_KEY }}
31+
WS_WSS_URL: https://saas-eu.whitesourcesoftware.com/agent
32+
WS_USERKEY: ${{ secrets.MEND_TOKEN }}
33+
WS_PRODUCTNAME: Puppet Agent
34+
WS_PROJECTNAME: ${{ github.event.repository.name }}
35+

.github/workflows/rspec_tests.yaml

+4-6
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,16 @@ jobs:
1313
strategy:
1414
matrix:
1515
cfg:
16-
- {os: ubuntu-18.04, ruby: '2.5'}
17-
- {os: ubuntu-18.04, ruby: '2.7'}
18-
- {os: ubuntu-18.04, ruby: '3.0'}
19-
- {os: ubuntu-18.04, ruby: 'jruby-9.2.17.0'}
20-
- {os: windows-2019, ruby: '2.5'}
16+
- {os: ubuntu-20.04, ruby: '2.7'}
17+
- {os: ubuntu-20.04, ruby: '3.0'}
18+
- {os: ubuntu-20.04, ruby: 'jruby-9.4.2'}
2119
- {os: windows-2019, ruby: '2.7'}
2220
- {os: windows-2019, ruby: '3.0'}
2321

2422
runs-on: ${{ matrix.cfg.os }}
2523
steps:
2624
- name: Checkout current PR
27-
uses: actions/checkout@v2
25+
uses: actions/checkout@v3
2826

2927
- name: Install ruby version ${{ matrix.cfg.ruby }}
3028
uses: ruby/setup-ruby@v1

.github/workflows/snyk_monitor.yaml

-27
This file was deleted.

0 commit comments

Comments
 (0)