Skip to content

Commit ee75c7c

Browse files
committed
(maint) Rename workflow for clarity + add new nightly ubuntu workflow
1 parent 297577f commit ee75c7c

File tree

2 files changed

+67
-1
lines changed

2 files changed

+67
-1
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: "Nightly Test on Ubuntu Github Runners"
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
jobs:
8+
Acceptance:
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
platform:
13+
- ubuntu-18.04
14+
- ubuntu-20.04
15+
- ubuntu-22.04
16+
collection:
17+
- puppet6-nightly
18+
- puppet7-nightly
19+
20+
runs-on: ${{ matrix.platform }}
21+
22+
steps:
23+
- name: Checkout Source
24+
uses: actions/checkout@v2
25+
26+
- name: Activate Ruby 2.7
27+
uses: ruby/setup-ruby@v1
28+
with:
29+
ruby-version: "2.7"
30+
31+
- name: Cache gems
32+
uses: actions/cache@v2
33+
with:
34+
path: vendor/gems
35+
key: ${{ runner.os }}-pr-${{ hashFiles('**/Gemfile') }}
36+
restore-keys: |
37+
${{ runner.os }}-pr-
38+
${{ runner.os }}-
39+
40+
- name: Prepare inventory file
41+
run: |
42+
cat <<EOF >> spec/fixtures/litmus_inventory.yaml
43+
---
44+
version: 2
45+
groups:
46+
- name: local
47+
targets:
48+
- uri: litmus_localhost
49+
config:
50+
transport: local
51+
- name: ssh_nodes
52+
targets: []
53+
- name: winrm_nodes
54+
targets: []
55+
EOF
56+
57+
- name: Install gems and puppet agent
58+
run: |
59+
bundle install
60+
sudo -u root env "PATH=$PATH" bundle exec rake 'litmus:install_agent[${{ matrix.collection }}]'
61+
62+
- name: Install module
63+
run: bundle exec rake 'litmus:install_module'
64+
65+
- name: Run acceptance tests
66+
run: sudo -u root env "PATH=$PATH" bundle exec rake 'litmus:acceptance:localhost'

.github/workflows/ubuntu18_pr.yaml renamed to .github/workflows/pr_test_ubuntu.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Test on Ubuntu Github Runners"
1+
name: "PR Test on Ubuntu Github Runners"
22

33
on: [pull_request]
44

0 commit comments

Comments
 (0)