Fix bug #4
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: static-analysis | |
on: | |
push: | |
pull_request: | |
jobs: | |
static-analysis: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-python@v5 | |
- run: pip install yamllint flake8 bandit | |
- run: yamllint -s .github/workflows/ | |
id: yamllint | |
continue-on-error: true | |
- run: flake8 coturn_exporter | |
id: flake8 | |
continue-on-error: true | |
- run: bandit coturn_exporter | |
id: bandit | |
continue-on-error: true | |
- run: 'false' # Fail the workflow if one of the analyzers complained | |
if: > | |
${{ steps.yamllint.outcome != 'success' || steps.flake8.outcome != | |
'success' || steps.bandit.outcome != 'success' }} | |
... |