Skip to content

Commit 6a427ba

Browse files
committed
npm run build
1 parent 6ba1ab0 commit 6a427ba

File tree

5 files changed

+142
-0
lines changed

5 files changed

+142
-0
lines changed

dist/.github/matchers.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
}

dist/.github/workflows/dist.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

dist/.github/workflows/semver.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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

dist/.github/workflows/test.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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

dist/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9290,6 +9290,7 @@ function wrappy (fn, cb) {
92909290
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
92919291

92929292
const os = __nccwpck_require__(2087);
9293+
const path = __nccwpck_require__(5622);
92939294

92949295
const core = __nccwpck_require__(2186);
92959296
const tc = __nccwpck_require__(7784);
@@ -9375,6 +9376,9 @@ async function run() {
93759376

93769377
core.addPath(pathToCLI);
93779378

9379+
const matchersPath = __nccwpck_require__.ab + ".github";
9380+
core.info(`##[add-matcher]${path.join(matchersPath, 'matchers.json')}`);
9381+
93789382
return version;
93799383
} catch (ex) {
93809384
core.error(ex);

0 commit comments

Comments
 (0)