Skip to content

Commit 929ebef

Browse files
authored
Merge pull request #29 from codenotary/verification-1.3
Verification 1.3
2 parents 6c637cd + 2aae6d6 commit 929ebef

File tree

460 files changed

+95241
-25351
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

460 files changed

+95241
-25351
lines changed

.env.example

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

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build and run immudb-node
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
pull_request:
8+
branches:
9+
- '**'
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [16.x, 18.x]
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
- name: Build
27+
run: |
28+
npm ci
29+
npm run build
30+
- name: Run immudb
31+
run: |
32+
docker run -d --rm --health-cmd "immuadmin status" --health-interval 10s --health-timeout 5s --health-retries 5 -p 3322:3322 codenotary/immudb:latest
33+
- name: Run showcase
34+
run: |
35+
cd immudb-node-showcase
36+
npx ts-node --esm ./src/scanning.ts

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish immudb node to npmjs
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
env:
9+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
10+
steps:
11+
- uses: actions/checkout@v3
12+
# Setup .npmrc file to publish to npm
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: '16.x'
16+
registry-url: 'https://registry.npmjs.org'
17+
- name: Build
18+
run: |
19+
npm ci
20+
npm run build
21+
- name: Publish immudb-node-grpcjs
22+
run: |
23+
cd immudb-node-grpcjs
24+
npm publish --access public --tag alpha
25+
- name: Publish immudb-node-pbjs
26+
run: |
27+
cd immudb-node-pbjs
28+
npm publish --access public --tag alpha
29+
- name: Publish immudb-node
30+
run: |
31+
cd immudb-node
32+
npm publish --access public --tag alpha
33+

.gitignore

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
1-
node_modules/
2-
package-lock.json
3-
root.json
4-
tests/immudb
5-
tests/test-data
6-
.nyc_output
7-
.vscode/
8-
tests/root.json
9-
.vscode
10-
root
11-
rootfile
12-
examples/.env
13-
.env
14-
dist/
1+
node_modules
2+
dist
3+
*.tsbuildinfo
4+
.vscode

.idea/.gitignore

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

.idea/codeStyles/Project.xml

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

.idea/codeStyles/codeStyleConfig.xml

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

.idea/immudb-node.iml

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

.idea/inspectionProfiles/Project_Default.xml

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

.idea/modules.xml

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

0 commit comments

Comments
 (0)