Add --prefix check and rename code quality test to make it consistent (see #1)
Code Quality Test / Quality-Check (push) Successful in 6s Details
Environment Setup Test / Setup (push) Successful in 29s Details

pull/4/head
drunkendog 2023-08-28 17:29:26 +01:00
parent 33b314a081
commit a155d9199a
2 changed files with 18 additions and 13 deletions

View File

@ -1,13 +0,0 @@
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 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)

View File

@ -0,0 +1,18 @@
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)