fix: detect rfc5424 changes on existing syslog destinations (#436) #179
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: Lint Ansible | |
| on: | |
| push: | |
| branches: [latest] | |
| paths: | |
| - 'tests/**.yml' | |
| - 'plugins/**.py' | |
| - 'meta/*' | |
| - '.github/workflows/lint-ansible.yml' | |
| - 'requirements_lint.txt' | |
| - '.yamllint' | |
| - '.ansible-lint.yml' | |
| pull_request: | |
| branches: [latest] | |
| paths: | |
| - 'tests/**.yml' | |
| - 'plugins/**.py' | |
| - 'meta/*' | |
| - '.github/workflows/lint-ansible.yml' | |
| - 'requirements_lint.txt' | |
| - '.yamllint' | |
| - '.ansible-lint.yml' | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: ${{ github.ref }} | |
| - name: Install python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: pip install -r requirements_lint.txt > /dev/null | |
| shell: bash | |
| - name: Running YamlLint | |
| run: | | |
| yamllint --version | |
| yamllint . | |
| shell: bash | |
| env: | |
| PYTHONUNBUFFERED: 1 | |
| - name: Preparing collection for AnsibleLint | |
| run: | | |
| mkdir -p /tmp/ansible_lint/collections/ansible_collections/oxlorg | |
| ln -s ${{ github.workspace }} /tmp/ansible_lint/collections/ansible_collections/oxlorg/opnsense | |
| shell: bash | |
| - name: Running AnsibleLint | |
| run: | | |
| ansible-lint --version | |
| ANSIBLE_COLLECTIONS_PATH=/tmp/ansible_lint/collections ansible-lint -c .ansible-lint.yml | |
| shell: bash | |
| env: | |
| PYTHONUNBUFFERED: 1 |