File tree Expand file tree Collapse file tree 5 files changed +142
-0
lines changed Expand file tree Collapse file tree 5 files changed +142
-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
1
+ name : Build
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - uses : actions/setup-node@v2
14
+ - uses : actions/cache@v2
15
+ with :
16
+ path : ~/.npm
17
+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
18
+ restore-keys : |
19
+ ${{ runner.os }}-node-
20
+ - name : Install
21
+ run : npm ci
22
+ - name : Test
23
+ run : npm test
24
+ - name : Build
25
+ run : npm run build
26
+ - uses : stefanzweifel/git-auto-commit-action@v4
27
+ with :
28
+ commit_message : update dist
29
+ file_pattern : dist/*.js
Original file line number Diff line number Diff line change
1
+ name : Update semver tags
2
+ on :
3
+ push :
4
+ branches-ignore :
5
+ - ' **'
6
+ tags :
7
+ - ' v*.*.*'
8
+ jobs :
9
+ semver :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - uses : haya14busa/action-update-semver@v1
Original file line number Diff line number Diff line change
1
+ name : Test
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+
9
+ jobs :
10
+ unit :
11
+ name : Unit tests
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+ - uses : actions/setup-node@v2
17
+ - uses : actions/cache@v2
18
+ with :
19
+ path : ~/.npm
20
+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
21
+ restore-keys : |
22
+ ${{ runner.os }}-node-
23
+ - name : Install
24
+ run : npm ci
25
+ - name : Test
26
+ run : npm test
27
+
28
+ integration :
29
+ name : Integration test
30
+ runs-on : ubuntu-latest
31
+
32
+ steps :
33
+ - name : Checkout
34
+ uses : actions/checkout@v2
35
+ - name : Use Action
36
+ uses : ./
37
+ - name : Validate
38
+ run : tflint -v
39
+
40
+ integration-versions :
41
+ name : ' Integration test (tflint_version: ${{ matrix.tflint_version }})'
42
+ runs-on : ubuntu-latest
43
+ strategy :
44
+ matrix :
45
+ tflint_version : ['v0.24.1', latest]
46
+
47
+ steps :
48
+ - name : Checkout
49
+ uses : actions/checkout@v2
50
+ - name : Use Action
51
+ uses : ./
52
+ with :
53
+ tflint_version : ${{ matrix.tflint_version }}
54
+ - name : Validate
55
+ if : matrix.tflint_version != 'latest'
56
+ run : |-
57
+ version='${{ matrix.tflint_version }}'
58
+ tflint -v | grep ${version:1}
59
+ - name : Validate
60
+ if : matrix.tflint_version == 'latest'
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 @@ -9290,6 +9290,7 @@ function wrappy (fn, cb) {
9290
9290
/***/ ( ( module , __unused_webpack_exports , __nccwpck_require__ ) => {
9291
9291
9292
9292
const os = __nccwpck_require__ ( 2087 ) ;
9293
+ const path = __nccwpck_require__ ( 5622 ) ;
9293
9294
9294
9295
const core = __nccwpck_require__ ( 2186 ) ;
9295
9296
const tc = __nccwpck_require__ ( 7784 ) ;
@@ -9375,6 +9376,9 @@ async function run() {
9375
9376
9376
9377
core . addPath ( pathToCLI ) ;
9377
9378
9379
+ const matchersPath = __nccwpck_require__ . ab + ".github" ;
9380
+ core . info ( `##[add-matcher]${ path . join ( matchersPath , 'matchers.json' ) } ` ) ;
9381
+
9378
9382
return version ;
9379
9383
} catch ( ex ) {
9380
9384
core . error ( ex ) ;
You can’t perform that action at this time.
0 commit comments