Compare commits
5 Commits
c15a97c3d9
...
5569b30543
| Author | SHA1 | Date |
|---|---|---|
|
|
5569b30543 | |
|
|
647d4b4812 | |
|
|
25056ca6f3 | |
|
|
bc87ceaebc | |
|
|
1820d4bde6 |
|
|
@ -1,4 +1 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
ko_fi: ansible0guy
|
|
||||||
github: ansibleguy
|
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Pulling logs
|
- name: Pulling logs
|
||||||
run: curl -f https://${{ env.CI_DOMAIN }}/api/job/${{ env.CI_JOB }}/logs?token=${{ secrets.CI_TOKEN_RW }} | jq > /tmp/test.log
|
run: curl --fail-with-body https://${{ env.CI_DOMAIN }}/api/job/${{ env.CI_JOB }}/logs?token=${{ secrets.CI_TOKEN_RW }} | jq > /tmp/test.log
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
|
|
@ -37,5 +37,5 @@ jobs:
|
||||||
|
|
||||||
- name: Checking job-state
|
- name: Checking job-state
|
||||||
run: >
|
run: >
|
||||||
curl https://${{ env.CI_DOMAIN }}/api/job/${{ env.CI_JOB }}/state?token=${{ secrets.CI_TOKEN_RW }} | jq -r '.state' | grep -q 'failed' && exit 1 || exit 0
|
curl --fail-with-body https://${{ env.CI_DOMAIN }}/api/job/${{ env.CI_JOB }}/state?token=${{ secrets.CI_TOKEN_RW }} | jq -r '.state' | grep -q 'failed' && exit 1 || exit 0
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Starting Tests
|
- name: Starting Tests
|
||||||
run: curl -f -XPOST https://${{ env.CI_DOMAIN }}/api/job/${{ env.CI_JOB }}?token=${{ secrets.CI_TOKEN_RW }}
|
run: curl --fail-with-body -XPOST https://${{ env.CI_DOMAIN }}/api/job/${{ env.CI_JOB }}?token=${{ secrets.CI_TOKEN_RW }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: You can pull the current logs at this URL
|
- name: You can pull the current logs at this URL
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,10 @@ on:
|
||||||
- '**.yml'
|
- '**.yml'
|
||||||
- '.github/workflows/lint.yml'
|
- '.github/workflows/lint.yml'
|
||||||
- 'requirements_lint.txt'
|
- 'requirements_lint.txt'
|
||||||
|
- '.yamllint'
|
||||||
|
- '.pylintrc'
|
||||||
|
- '.pylintrc_j2'
|
||||||
|
- '.ansible-lint.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main, stable, latest]
|
branches: [main, stable, latest]
|
||||||
paths:
|
paths:
|
||||||
|
|
@ -17,6 +21,10 @@ on:
|
||||||
- '**.yml'
|
- '**.yml'
|
||||||
- '.github/workflows/lint.yml'
|
- '.github/workflows/lint.yml'
|
||||||
- 'requirements_lint.txt'
|
- 'requirements_lint.txt'
|
||||||
|
- '.yamllint'
|
||||||
|
- '.pylintrc'
|
||||||
|
- '.pylintrc_j2'
|
||||||
|
- '.ansible-lint.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
|
|
@ -31,7 +39,7 @@ jobs:
|
||||||
- name: Install python
|
- name: Install python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.11'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,4 @@ rules:
|
||||||
truthy:
|
truthy:
|
||||||
allowed-values: ['true', 'false', 'yes', 'no']
|
allowed-values: ['true', 'false', 'yes', 'no']
|
||||||
line-length:
|
line-length:
|
||||||
max: 170
|
max: 190
|
||||||
|
|
|
||||||
|
|
@ -44,10 +44,6 @@ provisioner:
|
||||||
no_target_syslog: true
|
no_target_syslog: true
|
||||||
verifier:
|
verifier:
|
||||||
name: ansible
|
name: ansible
|
||||||
config_options:
|
|
||||||
defaults:
|
|
||||||
remote_tmp: '/tmp'
|
|
||||||
no_target_syslog: true
|
|
||||||
scenario:
|
scenario:
|
||||||
name: default
|
name: default
|
||||||
test_sequence:
|
test_sequence:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue