mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-05-08 05:52:37 +00:00
Merge pull request #78 from geerlingguy/77-checkout-v2
Fixes #77: Update checkout action to v2 for CI stability.
This commit is contained in:
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
|||||||
python_version: ['3.6']
|
python_version: ['3.6']
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
path: ansible_collections/community/kubernetes
|
path: ansible_collections/community/kubernetes
|
||||||
|
|
||||||
@@ -31,6 +31,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run sanity tests on Python ${{ matrix.python_version }}
|
- name: Run sanity tests on Python ${{ matrix.python_version }}
|
||||||
run: ansible-test sanity --docker -v --color --python ${{ matrix.python_version }}
|
run: ansible-test sanity --docker -v --color --python ${{ matrix.python_version }}
|
||||||
|
working-directory: ./ansible_collections/community/kubernetes
|
||||||
|
|
||||||
integration:
|
integration:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -39,7 +40,7 @@ jobs:
|
|||||||
python_version: ['3.6']
|
python_version: ['3.6']
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
path: ansible_collections/community/kubernetes
|
path: ansible_collections/community/kubernetes
|
||||||
|
|
||||||
@@ -53,9 +54,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Run integration tests on Python ${{ matrix.python_version }}
|
- name: Run integration tests on Python ${{ matrix.python_version }}
|
||||||
run: ansible-test integration --docker -v --color --retry-on-error --python ${{ matrix.python_version }} --continue-on-error --diff --coverage
|
run: ansible-test integration --docker -v --color --retry-on-error --python ${{ matrix.python_version }} --continue-on-error --diff --coverage
|
||||||
|
working-directory: ./ansible_collections/community/kubernetes
|
||||||
|
|
||||||
- name: Generate coverage report.
|
- name: Generate coverage report.
|
||||||
run: ansible-test coverage xml -v --requirements --group-by command --group-by version
|
run: ansible-test coverage xml -v --requirements --group-by command --group-by version
|
||||||
|
working-directory: ./ansible_collections/community/kubernetes
|
||||||
|
|
||||||
- uses: codecov/codecov-action@v1
|
- uses: codecov/codecov-action@v1
|
||||||
with:
|
with:
|
||||||
@@ -68,7 +71,7 @@ jobs:
|
|||||||
python_version: ['3.7']
|
python_version: ['3.7']
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
path: ansible_collections/community/kubernetes
|
path: ansible_collections/community/kubernetes
|
||||||
|
|
||||||
@@ -89,7 +92,8 @@ jobs:
|
|||||||
- name: Create default collection path symlink
|
- name: Create default collection path symlink
|
||||||
run: |
|
run: |
|
||||||
mkdir -p /home/runner/.ansible
|
mkdir -p /home/runner/.ansible
|
||||||
ln -s /home/runner/work/kubernetes /home/runner/.ansible/collections
|
ln -s /home/runner/work/kubernetes/kubernetes /home/runner/.ansible/collections
|
||||||
|
|
||||||
- name: Run molecule default test scenario
|
- name: Run molecule default test scenario
|
||||||
run: molecule test
|
run: molecule test
|
||||||
|
working-directory: ./ansible_collections/community/kubernetes
|
||||||
|
|||||||
Reference in New Issue
Block a user