Skip to content

Commit 643d0c6

Browse files
authored
Merge pull request #10 from SecJS/feat/len-add-ci
feat: Add CI
2 parents caa048b + 9014baf commit 643d0c6

File tree

7 files changed

+13629
-5350
lines changed

7 files changed

+13629
-5350
lines changed

.github/workflows/cd.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,10 @@ jobs:
2222
registry-url: 'https://registry.npmjs.org'
2323

2424
- name: Download dependencies
25-
run: yarn
26-
27-
- name: Run the tests inside project
28-
run: yarn test
25+
run: npm install
2926

3027
- name: Transpile typescript to javascript
31-
run: yarn build
28+
run: npm run build
3229

3330
- name: Automatic GitHub Release
3431
uses: justincy/github-action-npm-release@2.0.1
@@ -39,4 +36,4 @@ jobs:
3936
if: steps.release.outputs.released == 'true'
4037
env:
4138
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
42-
name: Deploy
39+
name: Deploy

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI Http
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-18.04
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
19+
- uses: actions/setup-node@v1
20+
with:
21+
node-version: '14.x'
22+
registry-url: 'https://registry.npmjs.org'
23+
24+
- name: Download dependencies
25+
run: npm install
26+
27+
- name: Verify project lint and try to fix it
28+
run: npm run lint:fix
29+
30+
- name: Run the tests from project
31+
run: npm run test

.gitignore

Lines changed: 110 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,124 @@
1-
# compiled output
2-
node_modules
31

2+
node_modules/
3+
dist/
44
# Logs
55
logs
66
*.log
77
npm-debug.log*
88
yarn-debug.log*
99
yarn-error.log*
1010
lerna-debug.log*
11+
.pnpm-debug.log*
1112

12-
# OS
13-
.DS_Store
13+
# Diagnostic reports (https://nodejs.org/api/report.html)
14+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
1415

15-
# Tests
16-
/coverage
17-
/.nyc_output
16+
# Runtime data
17+
pids
18+
*.pid
19+
*.seed
20+
*.pid.lock
1821

19-
# IDEs and editors
20-
/.idea
21-
.project
22-
.classpath
23-
.c9/
24-
.env.testing
25-
*.launch
26-
.settings/
27-
*.sublime-workspace
22+
# Directory for instrumented libs generated by jscoverage/JSCover
23+
lib-cov
2824

29-
# IDE - VSCode
30-
.vscode/*
31-
!.vscode/settings.json
32-
!.vscode/tasks.json
33-
!.vscode/launch.json
34-
!.vscode/extensions.json
25+
# Coverage directory used by tools like istanbul
26+
coverage
27+
*.lcov
3528

36-
.env
37-
*.js
38-
*.d.ts
39-
build
29+
# nyc test coverage
30+
.nyc_output
31+
32+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
33+
.grunt
34+
35+
# Bower dependency directory (https://bower.io/)
36+
bower_components
37+
38+
# node-waf configuration
39+
.lock-wscript
40+
41+
# Compiled binary addons (https://nodejs.org/api/addons.html)
42+
build/Release
43+
44+
# Dependency directories
45+
jspm_packages/
46+
47+
# Snowpack dependency directory (https://snowpack.dev/)
48+
web_modules/
49+
50+
# TypeScript cache
51+
*.tsbuildinfo
52+
53+
# Optional npm cache directory
54+
.npm
55+
56+
# Optional eslint cache
57+
.eslintcache
58+
59+
# Microbundle cache
60+
.rpt2_cache/
61+
.rts2_cache_cjs/
62+
.rts2_cache_es/
63+
.rts2_cache_umd/
64+
65+
# Optional REPL history
66+
.node_repl_history
67+
68+
# Output of 'npm pack'
69+
*.tgz
70+
71+
# Yarn Integrity file
72+
.yarn-integrity
4073

74+
# parcel-bundler cache (https://parceljs.org/)
75+
.cache
76+
.parcel-cache
77+
78+
# Next.js build output
79+
.next
80+
out
81+
82+
# Nuxt.js build / generate output
83+
.nuxt
84+
dist
85+
86+
# Gatsby files
87+
.cache/
88+
# Comment in the public line in if your project uses Gatsby and not Next.js
89+
# https://nextjs.org/blog/next-9-1#public-directory-support
90+
# public
91+
92+
# vuepress build output
93+
.vuepress/dist
94+
95+
# Serverless directories
96+
.serverless/
97+
98+
# FuseBox cache
99+
.fusebox/
100+
101+
# DynamoDB Local files
102+
.dynamodb/
103+
104+
# TernJS port file
105+
.tern-port
106+
107+
# Stores VSCode versions used for testing VSCode extensions
108+
.vscode-test
109+
110+
# yarn v2
111+
.yarn/cache
112+
.yarn/unplugged
113+
.yarn/build-state.yml
114+
.yarn/install-state.gz
115+
.pnp.*
116+
117+
# IDE
118+
.idea
119+
.vscode
120+
121+
# dotenv environment variables file
122+
.env
123+
.env.testing
124+
.env.production

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,15 @@ The intention behind this repository is to always maintain a `Http` package to a
2323
2424
## Installation
2525

26+
> To use the high potential from @secjs/http you need to install first this packages from SecJS,
27+
> it keeps as dev dependency because one day @secjs/core will install everything once.
28+
29+
```bash
30+
npm install @secjs/contracts @secjs/utils
31+
```
32+
2633
```bash
27-
yarn add @secjs/http
34+
npm install @secjs/http
2835
```
2936

3037
## Usage

0 commit comments

Comments
 (0)