@@ -19,10 +19,13 @@ jobs:
1919 runs-on : " ubuntu-24.04"
2020 outputs :
2121 matrix : ${{ steps.get-matrix.outputs.matrix }}
22+
23+ env :
24+ BUNDLE_WITHOUT : release_prep
2225
2326 steps :
2427 - name : " Checkout"
25- uses : " actions/checkout@v3 "
28+ uses : " actions/checkout@v4 "
2629 with :
2730 ref : ${{ github.event.pull_request.head.sha }}
2831
@@ -35,28 +38,49 @@ jobs:
3538 - name : Setup Test Matrix
3639 id : get-matrix
3740 run : |
38- bundle exec matrix_from_metadata_v2 --provision-service
41+ bundle exec matrix_from_metadata_v3 --provision-service
3942
4043 Acceptance :
41- name : " Acceptance tests (${{matrix.platforms.label}}, ${{matrix.collection}})"
44+ name : " Acceptance tests (${{matrix.platforms.label}}, ${{matrix.collection.collection || matrix.collection }})"
4245 needs : setup_matrix
4346 runs-on : ubuntu-latest
47+ timeout-minutes : 180
4448 strategy :
4549 fail-fast : false
4650 matrix : ${{fromJson(needs.setup_matrix.outputs.matrix)}}
4751
4852 env :
49- PUPPET_GEM_VERSION : ' ~> 7.24'
53+ BUNDLE_WITHOUT : release_prep
54+ PUPPET_GEM_VERSION : ' ~> 8.9'
5055 FACTER_GEM_VERSION : ' https://github.com/puppetlabs/facter#main' # why is this set?
56+ TWINGATE_PUBLIC_REPO_KEY : ${{ secrets.TWINGATE_PUBLIC_REPO_KEY }}
5157
5258 steps :
5359 - name : " Install Twingate"
5460 uses : " twingate/github-action@v1"
5561 with :
5662 service-key : ${{ secrets.TWINGATE_PUBLIC_REPO_KEY }}
5763
64+ - name : Fix DNS
65+ run : |
66+ echo "=== Remove Azure DNS from eth0 interface ==="
67+ sudo resolvectl dns eth0 ""
68+
69+ echo "=== Configure Twingate DNS properly ==="
70+ sudo resolvectl dns sdwan0 100.95.0.251 100.95.0.252
71+ sudo resolvectl domain sdwan0 delivery.puppetlabs.net
72+
73+ echo "=== Flush DNS cache ==="
74+ sudo resolvectl flush-caches
75+
76+ echo "=== Check new configuration ==="
77+ resolvectl status
78+
79+ echo "=== Test DNS resolution ==="
80+ nslookup artifactory.delivery.puppetlabs.net
81+
5882 - name : " Checkout"
59- uses : " actions/checkout@v3 "
83+ uses : " actions/checkout@v4 "
6084 with :
6185 ref : ${{ github.event.pull_request.head.sha }}
6286
@@ -79,7 +103,12 @@ jobs:
79103
80104 - name : " Install Puppet agent"
81105 run : |
82- bundle exec rake 'litmus:install_agent[${{ matrix.collection }}]'
106+ if [[ "${{ matrix.collection.version }}" ]] ; then
107+ export PUPPET_VERSION=${{ matrix.collection.version }}
108+ bundle exec rake 'litmus:install_agent[${{ matrix.collection.collection }}]'
109+ else
110+ bundle exec rake 'litmus:install_agent[${{ matrix.collection }}]'
111+ fi
83112
84113 - name : " Install module"
85114 run : |
0 commit comments