-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] Upgrade CI workers for ansible tests
- Loading branch information
Showing
4 changed files
with
48 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,8 +36,7 @@ jobs: | |
|
||
lint: | ||
name: Lint | ||
# Use 20.04.5 until https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/16450 is resolved | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Check out the codebase. | ||
uses: actions/checkout@v4 | ||
|
@@ -56,8 +55,7 @@ jobs: | |
linux-test: | ||
name: Linux Test | ||
needs: lint | ||
# Use 20.04.5 until https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/16450 is resolved | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -66,39 +64,46 @@ jobs: | |
- ansible~=9.2.0 | ||
- ansible~=8.7.0 | ||
distro: | ||
- amazonlinux2 | ||
- amazonlinux2023 | ||
- centos8 | ||
- centos9 | ||
- debian9 | ||
- debian10 | ||
- debian11 | ||
- debian12 | ||
- opensuse12 | ||
- ubuntu1604 | ||
- ubuntu1804 | ||
- ubuntu2004 | ||
- ubuntu2204 | ||
- amazonlinux-2 | ||
- amazonlinux-2023 | ||
- centos-8.5 | ||
- centos-stream-9 | ||
- debian-9 | ||
- debian-10 | ||
- debian-11 | ||
- debian-12 | ||
- opensuse-13.2 | ||
- ubuntu-16.04 | ||
- ubuntu-18.04 | ||
- ubuntu-20.04 | ||
- ubuntu-22.04 | ||
exclude: | ||
# ansible-core used by ansible 9.2.0 requires a minimum of Python2 version 2.7 or Python3 version 3.6. Current version: 3.5.2 | ||
- distro: ubuntu1604 | ||
ansible: ansible~=9.2.0 | ||
|
||
steps: | ||
- name: Free up disk space for vagrant box | ||
uses: jlumbroso/[email protected] | ||
|
||
- name: Check out the codebase. | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install vagrant and virtualbox | ||
run: | | ||
sudo apt update && sudo apt install -y virtualbox | ||
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg | ||
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list | ||
sudo apt update && sudo apt install -y vagrant | ||
- uses: DamianReeves/[email protected] | ||
with: | ||
path: "${{ github.workspace }}/requirements.txt" | ||
contents: | | ||
${{ matrix.ansible }} | ||
ansible-lint==6.22.2 | ||
molecule==6.0.3 | ||
molecule-plugins[docker]==23.5.0 | ||
docker==7.0.0 | ||
requests<2.32.0 | ||
urllib3<2 | ||
molecule-plugins[vagrant]==23.5.0 | ||
- name: Set up Python 3. | ||
uses: actions/setup-python@v5 | ||
|
@@ -115,11 +120,11 @@ jobs: | |
pip3 install --use-pep517 -r ${GITHUB_WORKSPACE}/requirements.txt | ||
- name: Run Molecule tests. | ||
run: molecule --debug -v --base-config ./molecule/config/docker.yml test --all | ||
run: molecule --debug -v --base-config ./molecule/config/linux.yml test --all | ||
env: | ||
PY_COLORS: '1' | ||
ANSIBLE_FORCE_COLOR: '1' | ||
MOLECULE_DISTRO: ${{ matrix.distro }} | ||
MOLECULE_VAGRANT_BOX: bento/${{ matrix.distro }} | ||
|
||
windows-test: | ||
name: Windows Test | ||
|
@@ -196,8 +201,7 @@ jobs: | |
push-release-tag: | ||
name: Push Release Tag | ||
needs: lint | ||
# Use 20.04.5 until https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/16450 is resolved | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-24.04 | ||
if: github.ref == 'refs/heads/main' | ||
steps: | ||
- name: Checkout | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters