-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (77 loc) · 2.06 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Test run for Falco GitHub Action
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
acl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Falco on valid ACL
uses: ./
with:
subcommand: lint
target: test/acl/valid.acl
- name: Run Falco on valid ACL with normal verbosity
uses: ./
with:
subcommand: lint
options: -v
target: test/acl/valid.acl
- name: Run Falco on valid ACL with high verbosity
uses: ./
with:
subcommand: lint
options: -vv
target: test/acl/valid.acl
#- name: Run Falco on ACL with invalid IP
#uses: ./
#with:
#subcommand: lint
#target: test/acl/invalid_ip.acl
#- name: Run Falco on ACL with invalid IP range
#uses: ./
#with:
#subcommand: lint
#target: test/acl/invalid_range.acl
#- name: Run Falco on ACL with invalid syntax
#uses: ./
#with:
#subcommand: lint
#target: test/acl/invalid_syntax.acl
vcl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Falco on valid VCL
uses: ./
with:
subcommand: lint
target: test/vcl/valid.vcl
- name: Run Falco on valid VCL with normal verbosity
uses: ./
with:
subcommand: lint
options: -v
target: test/vcl/valid.vcl
- name: Run Falco on valid VCL with high verbosity
uses: ./
with:
subcommand: lint
options: -vv
target: test/vcl/valid.vcl
- name: Run Falco on valid VCL with include, normal verbosity
uses: ./
with:
subcommand: lint
options: "-v -I test/vcl/includes"
target: test/vcl/valid_with_include.vcl
#- name: Run Falco on invalid VCL
#uses: ./
#with:
#subcommand: lint
#target: test/vcl/invalid_syntax.acl