-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (41 loc) · 980 Bytes
/
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
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: Get output
run: echo "Issues found in previous step"
if: steps.sqlcheck.outputs.issue-found
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: Get output
run: echo "Issues found in previous step"
if: steps.sqlcheck.outputs.issue-found