File tree Expand file tree Collapse file tree 3 files changed +71
-3
lines changed Expand file tree Collapse file tree 3 files changed +71
-3
lines changed Original file line number Diff line number Diff line change 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'
Original file line number Diff line number Diff line change 1- name : " Test on Ubuntu Github Runners"
1+ name : " PR Test on Ubuntu Github Runners"
22
33on : [pull_request]
44
1010 platform :
1111 - ubuntu-18.04
1212 - ubuntu-20.04
13+ - ubuntu-22.04
1314 collection :
1415 - puppet6-nightly
1516 - puppet7-nightly
2122 uses : actions/checkout@v2
2223
2324 - name : Activate Ruby 2.7
24- uses : actions /setup-ruby@v1
25+ uses : ruby /setup-ruby@v1
2526 with :
2627 ruby-version : " 2.7"
2728
Original file line number Diff line number Diff line change 3636 "operatingsystem" : " Ubuntu" ,
3737 "operatingsystemrelease" : [
3838 " 18.04" ,
39- " 20.04"
39+ " 20.04" ,
40+ " 22.04"
4041 ]
4142 },
4243 {
You can’t perform that action at this time.
0 commit comments