Add --prefix check and rename code quality test to make it consistent (see #1)
parent
33b314a081
commit
a155d9199a
|
@ -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)
|
|
@ -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)
|
Loading…
Reference in New Issue