Skip to content

Commit bf951a7

Browse files
committed
chore: use GitHub actions and SonarCloud for testing and analysis
1 parent df700fa commit bf951a7

File tree

5 files changed

+67
-168
lines changed

5 files changed

+67
-168
lines changed

.github/workflows/ci.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
paths:
7+
- '.github/workflows/ci.yml'
8+
- 'src/**'
9+
- 'scripts'
10+
- '.eslintignore'
11+
- '.eslintrc'
12+
- '.prettierignore'
13+
- '.prettierrc'
14+
- 'babel.config.json'
15+
- 'jest.config.js'
16+
- 'package.json'
17+
- 'package-lock.json'
18+
- 'sonar-project.properties'
19+
- 'tsconfig.json'
20+
- 'tsconfig.prod.json'
21+
pull_request:
22+
branches: [master]
23+
types: [opened, synchronize, reopened]
24+
paths:
25+
- '.github/workflows/ci.yml'
26+
- 'src/**'
27+
- 'scripts'
28+
- '.eslintignore'
29+
- '.eslintrc'
30+
- '.prettierignore'
31+
- '.prettierrc'
32+
- 'babel.config.json'
33+
- 'jest.config.js'
34+
- 'package.json'
35+
- 'package-lock.json'
36+
- 'sonar-project.properties'
37+
- 'tsconfig.json'
38+
- 'tsconfig.prod.json'
39+
jobs:
40+
testing:
41+
name: Testing and Analysis
42+
runs-on: ubuntu-latest
43+
timeout-minutes: 5
44+
45+
steps:
46+
- name: Checkout project code
47+
uses: actions/checkout@v2
48+
with:
49+
fetch-depth: 0
50+
- name: Use Node.js 14.x
51+
uses: actions/setup-node@v1
52+
with:
53+
node-version: 14.x
54+
- name: Installation
55+
run: npm ci
56+
- name: Building
57+
run: npm run build
58+
- name: Testing
59+
run: npm run test:coverage
60+
env:
61+
CI: true
62+
- uses: sonarsource/sonarcloud-github-action@master
63+
env:
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.travis.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

package-lock.json

Lines changed: 0 additions & 155 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
"@types/react-window": "^1.8.2",
7575
"babel-jest": "^26.2.2",
7676
"babel-loader": "^8.1.0",
77-
"codecov": "^3.7.2",
7877
"cross-env": "^7.0.2",
7978
"cssnano": "^4.1.10",
8079
"enzyme": "^3.11.0",

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"baseUrl": "./",
55
"declaration": true,
66
"jsx": "react",
7-
"lib": ["dom", "es2017"],
7+
"lib": ["dom", "esnext"],
88
"module": "commonjs",
99
"moduleResolution": "node",
1010
"noFallthroughCasesInSwitch": true,
@@ -14,7 +14,7 @@
1414
"sourceMap": true,
1515
"sourceRoot": "./src",
1616
"strict": true,
17-
"target": "es2015",
17+
"target": "esnext",
1818
"typeRoots": ["node_modules/@types"]
1919
},
2020
"include": [

0 commit comments

Comments
 (0)