Skip to content

Commit 1603731

Browse files
authored
Merge pull request #16 from veghdev/ci
workflows: set up ci
2 parents 4f2a2fe + 1a8fca0 commit 1603731

File tree

4 files changed

+30
-3
lines changed

4 files changed

+30
-3
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Initialize development environment
18+
run: npm install
19+
20+
- name: Run CI check
21+
run: npm run check

.npmignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.gitignore
22
.npmignore
33

4+
.github
5+
46
src
57

68
.eslintrc.js
@@ -9,4 +11,4 @@ rollup.config.js
911
pull_request_template.md
1012

1113
CODE_OF_CONDUCT.md
12-
SECURITY.md
14+
SECURITY.md

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[![CI](https://github.com/veghdev/write-npmstat/workflows/CI/badge.svg?branch=main)](https://github.com/veghdev/write-npmstat/actions/workflows/ci.yml)
2+
3+
14
# About The Project
25

36
write-npmstat makes it easy to collect, filter and save npm statistics to csv files.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
"prettier": "prettier -w ./*js ./src/*js",
99
"eslint": "eslint --fix ./*js ./src/*js",
1010
"format": "npm-run-all prettier eslint",
11-
"rollup": "rollup -c",
1211
"check-prettier": "prettier -c ./*js ./src/*js",
1312
"check-eslint": "eslint ./*js ./src/*js",
14-
"check": "npm-run-all check-prettier check-eslint"
13+
"check-format": "npm-run-all check-prettier check-eslint",
14+
"check": "npm-run-all check-format",
15+
"rollup": "rollup -c"
1516
},
1617
"repository": {
1718
"type": "git",

0 commit comments

Comments
 (0)