-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1755fa9
commit 679aebc
Showing
4 changed files
with
19 additions
and
13 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 |
---|---|---|
|
@@ -8,7 +8,6 @@ on: | |
env: | ||
COLL_NS: flowerysong | ||
COLL_NAME: melange | ||
PYTHON_VERSION: 3.9 | ||
ANSIBLE_COLLECTIONS_PATHS: ${{ github.workspace }} | ||
|
||
jobs: | ||
|
@@ -17,23 +16,23 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
python-version: 3.12 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install 'git+https://github.com/ansible/ansible@stable-2.13#egg=ansible-core' | ||
python -m pip install 'git+https://github.com/ansible/ansible@stable-2.16#egg=ansible-core' | ||
- name: Build collection | ||
run: ansible-galaxy collection build -vv | ||
|
||
- name: Upload collection | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: ${{ env.COLL_NS }}-${{ env.COLL_NAME }}-*.tar.gz | ||
name: ${{ env.COLL_NS }}-${{ env.COLL_NAME }} | ||
|
@@ -44,26 +43,29 @@ jobs: | |
strategy: | ||
matrix: | ||
ansible_version: | ||
- name: stable-2.12 | ||
version: git+https://github.com/ansible/[email protected]#egg=ansible-core | ||
- name: stable-2.13 | ||
version: git+https://github.com/ansible/[email protected]#egg=ansible-core | ||
- name: stable-2.15 | ||
version: git+https://github.com/ansible/[email protected]#egg=ansible-core | ||
python: 3.9 | ||
- name: stable-2.16 | ||
version: git+https://github.com/ansible/[email protected]#egg=ansible-core | ||
python: 3.12 | ||
- name: devel | ||
version: git+https://github.com/ansible/ansible#egg=ansible-core | ||
python: 3.12 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
python-version: ${{ matrix.ansible_version.python }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install '${{ matrix.ansible_version.version }}' pycodestyle pylint pyyaml voluptuous yamllint junit-xml | ||
- name: Download collection | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: ${{ env.COLL_NS }}-${{ env.COLL_NAME }} | ||
|
||
|
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 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 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