Skip to content

Commit 4f75107

Browse files
authored
[setup] ci (#31)
test commit fix name [add] rule [remove] vavariable-name [fix] rule syntax
1 parent 1b9e0fa commit 4f75107

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [12.x]
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
- name: Setup ${{ matrix.node-version }}
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
- name: yarn install, build, and test
28+
run: |
29+
yarn install
30+
yarn build
31+
yarn fix
32+
yarn lint
33+
yarn test

tslint.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
"extends": ["tslint:recommended"],
44
"jsRules": {},
55
"rules": {
6-
"object-literal-sort-keys": false
6+
"object-literal-sort-keys": false,
7+
"variable-name": {
8+
"options": [
9+
"allow-leading-underscore"
10+
]
11+
}
712
},
813
"rulesDirectory": []
14+
915
}

0 commit comments

Comments
 (0)