summaryrefslogtreecommitdiff
path: root/.github/workflows/tests.yml
diff options
context:
space:
mode:
authoromnom62 <omnom62@outlook.com>2026-06-01 06:12:38 +1000
committeromnom62 <omnom62@outlook.com>2026-06-01 06:12:38 +1000
commit3d5580b801812dbbeefb37cfb7059b7f2b4adcbb (patch)
tree3566f36822e1ae4bae19efaaab63a06f4bb525b8 /.github/workflows/tests.yml
parent967a8c581df46f3c01d642ed08ec0d7ec43d79f6 (diff)
downloadrest.vyos-3d5580b801812dbbeefb37cfb7059b7f2b4adcbb.tar.gz
rest.vyos-3d5580b801812dbbeefb37cfb7059b7f2b4adcbb.zip
Preparing first cut of modules
Diffstat (limited to '.github/workflows/tests.yml')
-rw-r--r--.github/workflows/tests.yml52
1 files changed, 52 insertions, 0 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 0000000..dedbc9e
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,52 @@
+---
+name: CI
+
+concurrency:
+ 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:
+ changelog:
+ uses: ansible/ansible-content-actions/.github/workflows/changelog.yaml@main
+ if: github.event_name == 'pull_request'
+ build-import:
+ uses: ansible/ansible-content-actions/.github/workflows/build_import.yaml@main
+ ansible-lint:
+ uses: ansible/ansible-content-actions/.github/workflows/ansible_lint.yaml@main
+ sanity:
+ uses: ansible/ansible-content-actions/.github/workflows/sanity.yaml@main
+ unit-galaxy:
+ uses: ansible/ansible-content-actions/.github/workflows/unit.yaml@main
+ unit-source:
+ uses: ansible-network/github_actions/.github/workflows/unit_source.yml@main
+ with:
+ collection_pre_install: >-
+ git+https://github.com/ansible-collections/ansible.utils.git
+ git+https://github.com/ansible-collections/ansible.netcommon.git
+ all_green:
+ if: ${{ always() }}
+ needs:
+ - changelog
+ - build-import
+ - sanity
+ - unit-galaxy
+ - unit-source
+ - ansible-lint
+ runs-on: ubuntu-latest
+ steps:
+ - run: >-
+ python -c "assert 'failure' not in
+ set([
+ '${{ needs.changelog.result }}',
+ '${{ needs.sanity.result }}',
+ '${{ needs.unit-galaxy.result }}'
+ '${{ needs.ansible-lint.result }}'
+ '${{ needs.unit-source.result }}'
+ ])"