diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d1ad55bb..e3fe7c20 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: python_version: ['3.6'] steps: - name: Check out code - uses: actions/checkout@v1 + uses: actions/checkout@v2 with: path: ansible_collections/community/kubernetes @@ -31,6 +31,7 @@ jobs: - name: Run sanity tests on Python ${{ matrix.python_version }} run: ansible-test sanity --docker -v --color --python ${{ matrix.python_version }} + working-directory: ./ansible_collections/community/kubernetes integration: runs-on: ubuntu-latest @@ -39,7 +40,7 @@ jobs: python_version: ['3.6'] steps: - name: Check out code - uses: actions/checkout@v1 + uses: actions/checkout@v2 with: path: ansible_collections/community/kubernetes @@ -53,9 +54,11 @@ jobs: - 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 + working-directory: ./ansible_collections/community/kubernetes - name: Generate coverage report. run: ansible-test coverage xml -v --requirements --group-by command --group-by version + working-directory: ./ansible_collections/community/kubernetes - uses: codecov/codecov-action@v1 with: @@ -68,7 +71,7 @@ jobs: python_version: ['3.7'] steps: - name: Check out code - uses: actions/checkout@v1 + uses: actions/checkout@v2 with: path: ansible_collections/community/kubernetes @@ -89,7 +92,8 @@ jobs: - name: Create default collection path symlink run: | 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 run: molecule test + working-directory: ./ansible_collections/community/kubernetes