-
Notifications
You must be signed in to change notification settings - Fork 7
47 lines (45 loc) · 1.03 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: "action-sqlcheck Test"
on: pull_request
jobs:
test1:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./
id: sqlcheck
with:
post-comment: false
risk-level: 3
verbose: false
token: ${{ secrets.GITHUB_TOKEN }}
directories: |
examples
- name: Check results
run: |
echo "Issues NOT found in previous step!"
exit 1
if: steps.sqlcheck.outputs.issue-found != 'true'
test2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./
id: sqlcheck
with:
post-comment: false
risk-level: 3
verbose: false
token: ${{ secrets.GITHUB_TOKEN }}
postfixes: |
sql
sqlx
schema
directories: |
examples
build/sql_dir
tests/sql_dir
- name: Check results
run: |
echo "Issues NOT found in previous step!"
exit 1
if: steps.sqlcheck.outputs.issue-found != 'true'