Update release.yml

This commit is contained in:
Ishan Jain 2022-11-22 15:28:21 +05:30 committed by GitHub
parent b650d342e9
commit 35d249bda0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,50 +39,50 @@ jobs:
run: ansible-test sanity -v --color --coverage run: ansible-test sanity -v --color --coverage
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}} working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
integration: # integration:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
name: Integration (Ⓐ${{ matrix.ansible }}-py${{ matrix.python }}) # name: Integration (Ⓐ${{ matrix.ansible }}-py${{ matrix.python }})
strategy: # strategy:
fail-fast: true # fail-fast: true
max-parallel: 1 # max-parallel: 1
matrix: # matrix:
ansible: # ansible:
- stable-2.13 # - stable-2.13
python: # python:
- '3.10' # - '3.10'
steps: # steps:
- name: Check out code # - name: Check out code
uses: actions/checkout@v2 # uses: actions/checkout@v2
with: # with:
path: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}} # path: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
- name: create integration_config # - name: create integration_config
working-directory: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}/tests/integration # working-directory: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}/tests/integration
run: | # run: |
cat <<EOF > integration_config.yml # cat <<EOF > integration_config.yml
stack_name: ${{ secrets.ANSIBLE_TEST_STACK_NAME }} # stack_name: ${{ secrets.ANSIBLE_TEST_STACK_NAME }}
org_name: ${{ secrets.ANSIBLE_TEST_ORG_NAME }} # org_name: ${{ secrets.ANSIBLE_TEST_ORG_NAME }}
grafana_cloud_api_key: ${{ secrets.ANSIBLE_TEST_CLOUD_API_KEY }} # grafana_cloud_api_key: ${{ secrets.ANSIBLE_TEST_CLOUD_API_KEY }}
grafana_api_key: ${{ secrets.ANSIBLE_TEST_GRAFANA_API_KEY }} # grafana_api_key: ${{ secrets.ANSIBLE_TEST_GRAFANA_API_KEY }}
EOF # EOF
- name: Set up Python # - name: Set up Python
uses: actions/setup-python@v2 # uses: actions/setup-python@v2
with: # with:
python-version: ${{ matrix.python }} # python-version: ${{ matrix.python }}
- name: Install ansible-base (${{ matrix.ansible }}) # - name: Install ansible-base (${{ matrix.ansible }})
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check # run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
- name: Run integration test # - name: Run integration test
run: ansible-test integration -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker --coverage # run: ansible-test integration -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker --coverage
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}} # working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
release: release:
name: Create GitHub Release name: Create GitHub Release
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [sanity, integration] needs: [sanity]
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3