fix(example): render nginx port to config #66
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: unit | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
NAMESPACE: community | |
COLLECTION_NAME: upcloud | |
jobs: | |
units: | |
runs-on: ubuntu-latest | |
name: Unit tests (${{ matrix.version.ansible }}) | |
strategy: | |
fail-fast: true | |
matrix: | |
version: | |
- { ansible: stable-2.13, python: "3.10" } | |
- { ansible: stable-2.14, python: "3.11" } | |
- { ansible: stable-2.15, python: "3.11" } | |
- { ansible: devel, python: "3.11" } | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
with: | |
path: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}} | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
# it is just required to run that once as "ansible-test units" in the docker image | |
# will run on all python versions it supports. | |
python-version: ${{ matrix.version.python }} | |
- name: Install ansible-base (${{ matrix.version.ansible }}) | |
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.version.ansible }}.tar.gz --disable-pip-version-check | |
# Run the unit tests | |
- name: Run unit test | |
run: ansible-test units -v --color --docker --coverage | |
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}} | |
# ansible-test support producing code coverage date | |
- name: Generate coverage report | |
run: ansible-test coverage xml -v --requirements --group-by command --group-by version | |
working-directory: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}} | |
# See the reports at https://codecov.io/gh/GITHUBORG/REPONAME | |
- uses: codecov/codecov-action@v1 | |
with: | |
fail_ci_if_error: false |