diff options
Diffstat (limited to 'collections-debian-merged/ansible_collections/ngine_io/vultr/.github')
3 files changed, 140 insertions, 0 deletions
diff --git a/collections-debian-merged/ansible_collections/ngine_io/vultr/.github/workflows/integration.yml b/collections-debian-merged/ansible_collections/ngine_io/vultr/.github/workflows/integration.yml new file mode 100644 index 00000000..d8e21253 --- /dev/null +++ b/collections-debian-merged/ansible_collections/ngine_io/vultr/.github/workflows/integration.yml @@ -0,0 +1,74 @@ +name: Collection integration + +on: + push: + schedule: + - cron: 31 6 * * * # Run weekly + +jobs: + integration-test: + name: Integration test using Python ${{ matrix.python-version }} + runs-on: ubuntu-latest + defaults: + run: + working-directory: ansible_collections/ngine_io/vultr + strategy: + fail-fast: false + matrix: + runner-python-version: + - 3.6 + python-version: + - 3.6 + - 2.7 + steps: + - name: Check out code + uses: actions/checkout@v2 + with: + path: ansible_collections/ngine_io/vultr + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + + - name: Install ansible and collection dependencies + run: | + python -m pip install --upgrade pip + pip install ansible + + - name: Build and install collection + run: | + ansible-galaxy collection build . + ansible-galaxy collection install *.gz + + - name: Add config file + env: + CONFIG_FILE: ${{ secrets.CONFIG_FILE }} + run: | + echo "$CONFIG_FILE" > tests/integration/cloud-config-vultr.ini + + - name: Run the tests + run: >- + ansible-test + integration + --docker + -v + --diff + --color + --retry-on-error + --python ${{ matrix.python-version }} + --continue-on-error + --coverage + smoke/vultr/ + + - name: Generate coverage report + run: >- + ansible-test + coverage xml + -v + --requirements + --group-by command + --group-by version + - uses: codecov/codecov-action@v1 + with: + fail_ci_if_error: false diff --git a/collections-debian-merged/ansible_collections/ngine_io/vultr/.github/workflows/publish.yml b/collections-debian-merged/ansible_collections/ngine_io/vultr/.github/workflows/publish.yml new file mode 100644 index 00000000..31b5d45c --- /dev/null +++ b/collections-debian-merged/ansible_collections/ngine_io/vultr/.github/workflows/publish.yml @@ -0,0 +1,33 @@ +name: Upload release to Galaxy + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ansible_collections/ngine_io/vultr + steps: + - uses: actions/checkout@v2 + with: + path: ansible_collections/ngine_io/vultr + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install ansible + + - name: Build and publish + env: + ANSIBLE_GALAXY_API_KEY: ${{ secrets.ANSIBLE_GALAXY_API_KEY }} + run: | + ansible-galaxy collection build . + ansible-galaxy collection publish *.tar.gz --api-key $ANSIBLE_GALAXY_API_KEY diff --git a/collections-debian-merged/ansible_collections/ngine_io/vultr/.github/workflows/sanity.yml b/collections-debian-merged/ansible_collections/ngine_io/vultr/.github/workflows/sanity.yml new file mode 100644 index 00000000..3467db38 --- /dev/null +++ b/collections-debian-merged/ansible_collections/ngine_io/vultr/.github/workflows/sanity.yml @@ -0,0 +1,33 @@ +name: Sanity +on: +- pull_request + +jobs: + sanity: + name: Sanity (${{ matrix.ansible }}) + runs-on: ubuntu-latest + defaults: + run: + working-directory: ansible_collections/ngine_io/vultr + strategy: + matrix: + ansible: + - stable-2.10 + - stable-2.9 + - devel + steps: + - name: Check out code + uses: actions/checkout@v2 + with: + path: ansible_collections/ngine_io/vultr + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install ansible-base (${{ matrix.ansible }}) + run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check + + - name: Run sanity tests + run: ansible-test sanity --docker -v --color |