File tree Expand file tree Collapse file tree 4 files changed +42
-0
lines changed Expand file tree Collapse file tree 4 files changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "problemMatcher" : [
3
+ {
4
+ "owner" : " tflint-compact" ,
5
+ "pattern" : [
6
+ {
7
+ "regexp" : " ^(.+):(\\ d+):(\\ d+):\\ s(Error|Warning|Notice)\\ s-\\ s(.+)\\ s\\ ((.+)\\ )$" ,
8
+ "file" : 1 ,
9
+ "line" : 2 ,
10
+ "column" : 3 ,
11
+ "severity" : 4 ,
12
+ "message" : 5 ,
13
+ "code" : 6
14
+ }
15
+ ]
16
+ }
17
+ ]
18
+ }
Original file line number Diff line number Diff line change 59
59
- name : Validate
60
60
if : matrix.tflint_version == 'latest'
61
61
run : tflint -v
62
+
63
+ integration-matchers :
64
+ name : ' Integration test (tflint_version: ${{ matrix.tflint_version }})'
65
+ runs-on : ubuntu-latest
66
+ strategy :
67
+ matrix :
68
+ tflint_version : ['v0.26.0', latest]
69
+
70
+ steps :
71
+ - name : Checkout
72
+ uses : actions/checkout@v2
73
+ - name : Use Action
74
+ uses : ./
75
+ with :
76
+ tflint_version : ${{ matrix.tflint_version }}
77
+ - name : Run
78
+ run : tflint -f compact --force
Original file line number Diff line number Diff line change
1
+ resource "aws_instance" "foo" {
2
+ instance_type = " t1.2xlarge"
3
+ }
Original file line number Diff line number Diff line change 1
1
const os = require ( 'os' ) ;
2
+ const path = require ( 'path' ) ;
2
3
3
4
const core = require ( '@actions/core' ) ;
4
5
const tc = require ( '@actions/tool-cache' ) ;
@@ -84,6 +85,9 @@ async function run() {
84
85
85
86
core . addPath ( pathToCLI ) ;
86
87
88
+ const matchersPath = path . join ( __dirname , '..' , '.github' ) ;
89
+ core . info ( `##[add-matcher]${ path . join ( matchersPath , 'matchers.json' ) } ` ) ;
90
+
87
91
return version ;
88
92
} catch ( ex ) {
89
93
core . error ( ex ) ;
You can’t perform that action at this time.
0 commit comments