Debian Codegraph @

ansible_collections/splunk/es/.github/workflows/tests.yml

raw
1 ---
2 name: "Collection Tests"
3
4 concurrency:
5 group: ${{ github.head_ref || github.run_id }}-${{ github.event_name }}
6 cancel-in-progress: true
7
8 on: # yamllint disable-line rule:truthy
9 pull_request_target:
10 branches: [main]
11 workflow_dispatch:
12 schedule:
13 - cron: '0 0 * * *'
14
15
16 jobs:
17 sonar:
18 name: SonarCloud
19 uses: ansible/ansible-content-actions/.github/workflows/sonarcloud.yaml@main
20 with:
21 python_version: "3.12"
22 sonar_scanner_java_opts: "-Xss2m"
23 galaxy_dependencies: |
24 git+https://github.com/ansible-collections/ansible.utils.git
25 secrets:
26 SONAR_TOKEN: ${{ secrets.ANSIBLE_COLLECTIONS_ORG_SONAR_TOKEN_CICD_BOT }}
27 changelog:
28 uses: ansible/ansible-content-actions/.github/workflows/changelog.yaml@main
29 if: github.event_name == 'pull_request_target'
30 build-import:
31 uses: ansible/ansible-content-actions/.github/workflows/build_import.yaml@main
32 ansible-lint:
33 uses: ansible/ansible-content-actions/.github/workflows/ansible_lint.yaml@main
34 sanity:
35 uses: ansible/ansible-content-actions/.github/workflows/sanity.yaml@main
36 unit-galaxy:
37 uses: ansible/ansible-content-actions/.github/workflows/unit.yaml@main
38 all_green:
39 if: ${{ always() }}
40 needs:
41 - changelog
42 - build-import
43 - sanity
44 - unit-galaxy
45 - ansible-lint
46 - sonar
47 runs-on: ubuntu-latest
48 steps:
49 - run: >-
50 python -c "assert 'failure' not in
51 set([
52 '${{ needs.changelog.result }}',
53 '${{ needs.build-import.result }}',
54 '${{ needs.sanity.result }}',
55 '${{ needs.unit-galaxy.result }}',
56 '${{ needs.ansible-lint.result }}',
57 '${{ needs.sonar.result }}',
58 ])"