Merge pull request #1 from alalkamys/feat/vault-kv-migrate-role #3
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: CI | |
on: | |
push: | |
branches: | |
- "**" | |
paths-ignore: | |
- "docs/**" | |
- "**/*.md" | |
- ".gitignore" | |
- "LICENSE" | |
pull_request: | |
branches: | |
- main | |
- "releases/**" | |
defaults: | |
run: | |
working-directory: "alalkamys.vault_kv_migrate" | |
# ensure that only a single job or workflow using the same concurrency group will run at a time | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
# cancel previously running builds in a PR on new pushes | |
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | |
# set default permissions granted to the GITHUB_TOKEN to read only to follow least privilege principle | |
permissions: read-all | |
jobs: | |
lint: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check out the codebase. | |
uses: actions/checkout@v2 | |
with: | |
path: "alalkamys.vault_kv_migrate" | |
- name: Set up Python 3. | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.x" | |
- name: Install ansible-core and ansible-lint. | |
run: pip3 install ansible-core ansible-lint | |
- name: ansible-lint. | |
run: ansible-lint -c .ansible-lint |