feat: add support for tokens and system keyring #94
Workflow file for this run
This file contains hidden or 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: sanity | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| env: | |
| NAMESPACE: upcloud | |
| COLLECTION_NAME: cloud | |
| jobs: | |
| sanity: | |
| name: Sanity test (${{ matrix.version.ansible }}) | |
| strategy: | |
| matrix: | |
| version: | |
| - { ansible: stable-2.17, python: "3.11" } | |
| - { ansible: stable-2.18, python: "3.11" } | |
| - { ansible: stable-2.19, python: "3.11" } | |
| - { ansible: devel, python: "3.12" } | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v1 | |
| with: | |
| path: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}} | |
| - name: Set up Python | |
| uses: actions/setup-python@v1 | |
| with: | |
| 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 | |
| - name: Run sanity tests | |
| run: ansible-test sanity --docker -v --color | |
| - name: Test building a release | |
| run: ansible-galaxy collection build |