Skip to content

Commit

Permalink
Merge pull request #5 from pow-co/devops-build-automation
Browse files Browse the repository at this point in the history
Devops Build Automation & Passes Tests
  • Loading branch information
rohenaz authored Nov 3, 2023
2 parents 69115ab + 5c466c7 commit 1eeb760
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: 2.1
jobs:
build_and_test:
docker:
- image: circleci/node:16
steps:
- checkout
- run:
name: npm install
command: npm install
- run:
name: Run Tests
command: npm test
- run:
name: Build From Source
command: npm run build

workflows:
version: 2
build_and_deploy:
jobs:
- build_and_test

32 changes: 32 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm test
- run: npm run build

3 changes: 2 additions & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ describe("Sigma Protocol", () => {
const result = await sigma.remoteSign("http://localhost:21000", {
key: "Authorization",
value: "Bearer mockToken",
} as AuthToken);
type: 'header'
});

console.log({ result });
// Check the result
Expand Down

0 comments on commit 1eeb760

Please sign in to comment.