standard-build/.gitea/workflows/test-code-quality.yaml

18 lines
610 B
YAML

name: Code Quality Test
on: [push, pull_request]
jobs:
Quality-Check:
runs-on: ubuntu-22.04
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Check for --prefix in Borg commands (\#1)
continue-on-error: true
run: |
git ls-files backup/ | xargs grep '\-\-prefix'
exit $(git ls-files backup/ | xargs grep '\-\-prefix' | wc -l)
- name: Check for os.system (\#2)
continue-on-error: true
run: |
git ls-files | xargs grep os.system
exit $(git ls-files | xargs grep os.system | wc -l)