Skip to content

Commit 0647457

Browse files
authored
Merge pull request #21 from bastelfreak/ci
Apply Vox Pupuli CI defaults
2 parents e095816 + fe18cb6 commit 0647457

File tree

4 files changed

+16
-17
lines changed

4 files changed

+16
-17
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Build puppet-runtime
23

34
on:

.github/workflows/comment_on_pr.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
upload:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-24.04
1313
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1414
steps:
1515
- name: 'Download artifacts'
@@ -34,7 +34,7 @@ jobs:
3434
fs.writeFileSync('${{github.workspace}}/artifacts.zip', Buffer.from(download.data));
3535
fs.writeFileSync('./artifactid', matchArtifact.id)
3636
37-
- name: 'Unzip artifacts'
37+
- name: 'Unzip artifacts'
3838
run: unzip artifacts.zip
3939

4040
- name: 'Check comment limits'

.github/workflows/component_diff_check.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,21 @@ on:
88

99
jobs:
1010
vanagon_component_diff_check:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-24.04
12+
env:
13+
BUNDLE_WITH: development
1214
name: Check
1315
steps:
1416
- name: Checkout current PR
1517
uses: actions/checkout@v4
1618
with:
17-
fetch-depth: 0
19+
fetch-depth: 0 # we need the full history because the rake tasks reads git tags
1820

1921
- name: Install ruby version ${{ matrix.cfg.ruby }}
2022
uses: ruby/setup-ruby@v1
2123
with:
2224
ruby-version: 3.3
23-
24-
- name: Bundle project
25-
run: |
26-
gem install bundler
27-
bundle config set without packaging documentation
28-
bundle install --jobs 3 --retry 3 --with development
25+
bundler-cache: true
2926

3027
- name: Save artifacts data
3128
run: |

.github/workflows/runtime_tests.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Runtime tests
23

34
on:
@@ -9,10 +10,13 @@ on:
910
permissions:
1011
contents: read
1112

13+
env:
14+
BUNDLE_WITHOUT: development
15+
1216
jobs:
1317
vanagon_inspect:
1418
name: Vanagon inspect
15-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-24.04
1620
steps:
1721
- name: Checkout current PR
1822
uses: actions/checkout@v4
@@ -22,15 +26,12 @@ jobs:
2226
uses: ruby/setup-ruby@v1
2327
with:
2428
ruby-version: 3.3
25-
- name: Update rubygems and install gems
26-
run: |
27-
gem update --system --silent --no-document
28-
bundle config set without development
29-
bundle install --jobs 4 --retry 3
29+
bundler-cache: true
30+
3031
- name: Vanagon inspect
3132
run: |
3233
stat=0
33-
for projfile in $(ls configs/projects/[a-z]*.rb); do
34+
for projfile in configs/projects/[a-z]*.rb; do
3435
for plat in el-7-x86_64 ubuntu-18.04-amd64 ubuntu-20.04-amd64 ubuntu-22.04-amd64 windows-2012r2-x64; do
3536
proj=$(basename -s .rb "$projfile")
3637
if [[ "$proj" =~ ^pe- && "$plat" =~ ^(windows|osx) ]]; then

0 commit comments

Comments
 (0)