Compare commits
4 Commits
1ef9ddac31
...
f5ba58c59e
| Author | SHA1 | Date |
|---|---|---|
|
|
f5ba58c59e | |
|
|
9e1e7968f3 | |
|
|
2be30f1ab0 | |
|
|
def0cffb70 |
|
|
@ -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: |
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue