From 38b7c80217c4e72b1d8988eb1e60bb6e77334114 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 18 Apr 2024 07:52:22 +0200 Subject: Adding upstream version 9.4.0+dfsg. Signed-off-by: Daniel Baumann --- .../junipernetworks/junos/.github/dependabot.yml | 9 ++++++++ .../junos/.github/release-drafter.yml | 3 +++ .../junos/.github/workflows/ack.yml | 15 ++++++++++++ .../junos/.github/workflows/codecoverage.yml | 15 ++++++++++++ .../junos/.github/workflows/push.yml | 27 ++++++++++++++++++++++ .../junos/.github/workflows/release.yml | 14 +++++++++++ .../junos/.github/workflows/tests.yml | 16 +++++++++---- 7 files changed, 94 insertions(+), 5 deletions(-) create mode 100644 ansible_collections/junipernetworks/junos/.github/dependabot.yml create mode 100644 ansible_collections/junipernetworks/junos/.github/release-drafter.yml create mode 100644 ansible_collections/junipernetworks/junos/.github/workflows/ack.yml create mode 100644 ansible_collections/junipernetworks/junos/.github/workflows/codecoverage.yml create mode 100644 ansible_collections/junipernetworks/junos/.github/workflows/push.yml create mode 100644 ansible_collections/junipernetworks/junos/.github/workflows/release.yml (limited to 'ansible_collections/junipernetworks/junos/.github') diff --git a/ansible_collections/junipernetworks/junos/.github/dependabot.yml b/ansible_collections/junipernetworks/junos/.github/dependabot.yml new file mode 100644 index 000000000..5b32d4c10 --- /dev/null +++ b/ansible_collections/junipernetworks/junos/.github/dependabot.yml @@ -0,0 +1,9 @@ +--- +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: daily + labels: + - "skip-changelog" diff --git a/ansible_collections/junipernetworks/junos/.github/release-drafter.yml b/ansible_collections/junipernetworks/junos/.github/release-drafter.yml new file mode 100644 index 000000000..e3e5966e4 --- /dev/null +++ b/ansible_collections/junipernetworks/junos/.github/release-drafter.yml @@ -0,0 +1,3 @@ +--- +# see https://github.com/ansible-community/devtools +_extends: ansible-community/devtools diff --git a/ansible_collections/junipernetworks/junos/.github/workflows/ack.yml b/ansible_collections/junipernetworks/junos/.github/workflows/ack.yml new file mode 100644 index 000000000..fda595dc5 --- /dev/null +++ b/ansible_collections/junipernetworks/junos/.github/workflows/ack.yml @@ -0,0 +1,15 @@ +--- +# See https://github.com/ansible-community/devtools/blob/main/.github/workflows/ack.yml +name: ack + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +on: # yamllint disable-line rule:truthy + pull_request_target: + types: [opened, labeled, unlabeled, synchronize] + +jobs: + ack: + uses: ansible/devtools/.github/workflows/ack.yml@main diff --git a/ansible_collections/junipernetworks/junos/.github/workflows/codecoverage.yml b/ansible_collections/junipernetworks/junos/.github/workflows/codecoverage.yml new file mode 100644 index 000000000..b425edcc2 --- /dev/null +++ b/ansible_collections/junipernetworks/junos/.github/workflows/codecoverage.yml @@ -0,0 +1,15 @@ +--- +name: Code Coverage + +on: # yamllint disable-line rule:truthy + push: + pull_request: + branches: [ main ] + +jobs: + codecoverage: + uses: ansible-network/github_actions/.github/workflows/coverage_network_devices.yml@main + with: + collection_pre_install: >- + git+https://github.com/ansible-collections/ansible.utils.git + git+https://github.com/ansible-collections/ansible.netcommon.git diff --git a/ansible_collections/junipernetworks/junos/.github/workflows/push.yml b/ansible_collections/junipernetworks/junos/.github/workflows/push.yml new file mode 100644 index 000000000..8434ea5d1 --- /dev/null +++ b/ansible_collections/junipernetworks/junos/.github/workflows/push.yml @@ -0,0 +1,27 @@ +--- +# push workflow is shared and expected to perform actions after a merge happens +# on a maintenance branch (default or release). For example updating the +# draft release-notes. +# based on great work from +# https://github.com/T-Systems-MMS/ansible-collection-icinga-director +name: push + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +on: # yamllint disable-line rule:truthy + workflow_dispatch: + +env: + NAMESPACE: junipernetworks + COLLECTION_NAME: junos + ANSIBLE_COLLECTIONS_PATHS: ./ + +jobs: + update_release_draft: + uses: ansible/devtools/.github/workflows/push_network.yml@main + with: + repo: ansible-collections/junipernetworks.junos + secrets: + BOT_PAT: ${{ secrets.BOT_PAT }} diff --git a/ansible_collections/junipernetworks/junos/.github/workflows/release.yml b/ansible_collections/junipernetworks/junos/.github/workflows/release.yml new file mode 100644 index 000000000..eb04259d1 --- /dev/null +++ b/ansible_collections/junipernetworks/junos/.github/workflows/release.yml @@ -0,0 +1,14 @@ +--- +name: release +on: # yamllint disable-line rule:truthy + release: + types: [published] + +jobs: + release: + uses: ansible/devtools/.github/workflows/release_collection.yml@main + with: + environment: release + secrets: + ah_token: ${{ secrets.AH_TOKEN }} + ansible_galaxy_api_key: ${{ secrets.ANSIBLE_GALAXY_API_KEY }} diff --git a/ansible_collections/junipernetworks/junos/.github/workflows/tests.yml b/ansible_collections/junipernetworks/junos/.github/workflows/tests.yml index 7fcdf279f..e94026c6d 100644 --- a/ansible_collections/junipernetworks/junos/.github/workflows/tests.yml +++ b/ansible_collections/junipernetworks/junos/.github/workflows/tests.yml @@ -1,20 +1,23 @@ --- -name: Test collection +name: CI concurrency: - group: ${{ github.head_ref }} + group: ${{ github.head_ref || github.run_id }} cancel-in-progress: true on: # yamllint disable-line rule:truthy pull_request: branches: [main] workflow_dispatch: + schedule: + - cron: '0 0 * * *' jobs: ansible-lint: uses: ansible-network/github_actions/.github/workflows/ansible-lint.yml@main changelog: uses: ansible-network/github_actions/.github/workflows/changelog.yml@main + if: github.event_name == 'pull_request' sanity: uses: ansible-network/github_actions/.github/workflows/sanity.yml@main unit-galaxy: @@ -26,8 +29,9 @@ jobs: git+https://github.com/ansible-collections/ansible.utils.git git+https://github.com/ansible-collections/ansible.netcommon.git all_green: - if: ${{ always() }} + if: ${{ always() && (github.event_name != 'schedule') }} needs: + - ansible-lint - changelog - sanity - unit-galaxy @@ -35,9 +39,11 @@ jobs: runs-on: ubuntu-latest steps: - run: >- - python -c "assert set([ + python -c "assert 'failure' not in + set([ + '${{ needs.ansible-lint.result }}', '${{ needs.changelog.result }}', '${{ needs.sanity.result }}', '${{ needs.unit-galaxy.result }}', '${{ needs.unit-source.result }}' - ]) == {'success'}" + ])" -- cgit v1.2.3