11name : CI
22on : [push, pull_request, workflow_dispatch]
33jobs :
4- puppet-3-8-7 :
5- env :
6- PUPPET_VERSIONS : " 3.8.7"
7- PUPPET_VERSION : " 3.8.7"
8- RUBOCOP_TEST : false
9- RSPEC_TEST : true
10- runs-on : ubuntu-latest
11- strategy :
12- fail-fast : false
13- matrix :
14- ruby-version : ["2.0", "2.1"]
15- steps :
16- - name : Checkout code
17- uses : actions/checkout@v1
18- - name : Build container
19- run : docker build . --file Dockerfile --tag octocatalog-diff:ruby${{matrix.ruby-version}} --build-arg RUBY_VERSION=${{matrix.ruby-version}}
20- - name : Tests
21- run : docker run -e PUPPET_VERSION -e PUPPET_VERSIONS -e RSPEC_TEST -e RUBOCOP_TEST -e ENFORCE_COVERAGE octocatalog-diff:ruby${{matrix.ruby-version}} /app/script/cibuild
22-
234 puppet-4-10-10 :
245 env :
256 PUPPET_VERSIONS : " 4.10.10"
@@ -30,31 +11,31 @@ jobs:
3011 strategy :
3112 fail-fast : false
3213 matrix :
33- ruby-version : ["2.1", "2.2", "2.3 "]
14+ ruby-version : ["2.6 "]
3415 steps :
3516 - name : Checkout code
3617 uses : actions/checkout@v1
3718 - name : Build container
38- run : docker build . --file Dockerfile --tag octocatalog-diff:ruby${{matrix.ruby-version}} --build-arg RUBY_VERSION=${{matrix.ruby-version}}
19+ run : docker build . --file Dockerfile --tag octocatalog-diff:ruby${{matrix.ruby-version}} --build-arg RUBY_VERSION=${{matrix.ruby-version}} --build-arg PUPPET_VERSION=${{env.PUPPET_VERSION}}
3920 - name : Tests
4021 run : docker run -e PUPPET_VERSION -e PUPPET_VERSIONS -e RSPEC_TEST -e RUBOCOP_TEST -e ENFORCE_COVERAGE octocatalog-diff:ruby${{matrix.ruby-version}} /app/script/cibuild
4122
42- puppet-5-5-8 :
23+ puppet-5-5-22 :
4324 env :
44- PUPPET_VERSIONS : " 5.5.8 "
45- PUPPET_VERSION : " 5.5.8 "
25+ PUPPET_VERSIONS : " 5.5.22 "
26+ PUPPET_VERSION : " 5.5.22 "
4627 RUBOCOP_TEST : false
4728 RSPEC_TEST : true
4829 runs-on : ubuntu-latest
4930 strategy :
5031 fail-fast : false
5132 matrix :
52- ruby-version : ["2.4", "2.5", "2. 6"]
33+ ruby-version : ["2.6"]
5334 steps :
5435 - name : Checkout code
5536 uses : actions/checkout@v1
5637 - name : Build container
57- run : docker build . --file Dockerfile --tag octocatalog-diff:ruby${{matrix.ruby-version}} --build-arg RUBY_VERSION=${{matrix.ruby-version}}-stretch
38+ run : docker build . --file Dockerfile --tag octocatalog-diff:ruby${{matrix.ruby-version}} --build-arg RUBY_VERSION=${{matrix.ruby-version}} --build-arg PUPPET_VERSION=${{env.PUPPET_VERSION}}
5839 - name : Tests
5940 run : docker run -e PUPPET_VERSION -e PUPPET_VERSIONS -e RSPEC_TEST -e RUBOCOP_TEST -e ENFORCE_COVERAGE octocatalog-diff:ruby${{matrix.ruby-version}} /app/script/cibuild
6041
@@ -68,20 +49,14 @@ jobs:
6849 strategy :
6950 fail-fast : false
7051 matrix :
71- ruby-version : ["2.5", "2. 6"]
52+ ruby-version : ["2.6"]
7253 steps :
7354 - name : Checkout code
7455 uses : actions/checkout@v1
7556 - name : Build container
76- run : docker build . --file Dockerfile --tag octocatalog-diff:ruby${{matrix.ruby-version}} --build-arg RUBY_VERSION=${{matrix.ruby-version}}-stretch
57+ run : docker build . --file Dockerfile --tag octocatalog-diff:ruby${{matrix.ruby-version}} --build-arg RUBY_VERSION=${{matrix.ruby-version}} --build-arg PUPPET_VERSION=${{env.PUPPET_VERSION}}
7758 - name : Tests
7859 run : docker run -e PUPPET_VERSION -e PUPPET_VERSIONS -e RSPEC_TEST -e RUBOCOP_TEST -e ENFORCE_COVERAGE octocatalog-diff:ruby${{matrix.ruby-version}} /app/script/cibuild
79- - name : Rubocop and Coverage
80- run : docker run -e PUPPET_VERSION -e PUPPET_VERSIONS -e RSPEC_TEST -e RUBOCOP_TEST -e ENFORCE_COVERAGE octocatalog-diff:ruby${{matrix.ruby-version}} /app/script/cibuild
81- if : matrix.ruby-version == '2.6'
82- env :
83- RUBOCOP_TEST : true
84- ENFORCE_COVERAGE : true
8560
8661 puppet-7-3-0 :
8762 env :
@@ -93,13 +68,11 @@ jobs:
9368 strategy :
9469 fail-fast : false
9570 matrix :
96- # 2.7 and 3.0 fail at the moment
97- # ruby-version: ["2.5", "2.6", "2.7", "3.0"]
98- ruby-version : ["2.5", "2.6"]
71+ ruby-version : ["2.6"]
9972 steps :
10073 - name : Checkout code
10174 uses : actions/checkout@v1
10275 - name : Build container
103- run : docker build . --file Dockerfile --tag octocatalog-diff:ruby${{matrix.ruby-version}} --build-arg RUBY_VERSION=${{matrix.ruby-version}}-buster
76+ run : docker build . --file Dockerfile --tag octocatalog-diff:ruby${{matrix.ruby-version}} --build-arg RUBY_VERSION=${{matrix.ruby-version}} --build-arg PUPPET_VERSION=${{env.PUPPET_VERSION}}
10477 - name : Tests
10578 run : docker run -e PUPPET_VERSION -e PUPPET_VERSIONS -e RSPEC_TEST -e RUBOCOP_TEST -e ENFORCE_COVERAGE octocatalog-diff:ruby${{matrix.ruby-version}} /app/script/cibuild
0 commit comments