diff --git a/.github/workflows/unitTest.yml b/.github/workflows/unitTest.yml new file mode 100644 index 0000000..a9e7cb4 --- /dev/null +++ b/.github/workflows/unitTest.yml @@ -0,0 +1,31 @@ +# This workflow will do a clean installation 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: unit test + +on: + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + # strategy: + # matrix: + # node-version: [14.x, 16.x, 18.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v3 + - name: Setup pnpm + # You may pin to the exact commit or the version. + # uses: pnpm/action-setup@10693b3829bf86eb2572aef5f3571dcf5ca9287d + uses: pnpm/action-setup@v2.2.2 + with: + # Version of pnpm to install + version: 7.8.0 + - run: pnpm install --no-frozen-lockfile + - run: pnpm build + - run: pnpm test diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..fa4e095 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +strict-peer-dependencies=false \ No newline at end of file diff --git a/packages/nice-dag-core/tsconfig.build.json b/packages/nice-dag-core/tsconfig.build.json new file mode 100644 index 0000000..da5beea --- /dev/null +++ b/packages/nice-dag-core/tsconfig.build.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "exclude": [ + "src/**/*.spec.ts", + "src/**/*.test.ts" + ] + } \ No newline at end of file