diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..6785937 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,60 @@ +on: [push, pull_request] + +name: CI + +jobs: + node-jdbc: + name: node-jdbc + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + - ubuntu-latest + - windows-latest + node_version: + - 10 + - 12 + - 14 + - 15 + java_version: + - 8 + - 9 + - 10 + - 11 + - 12 + - 13 + - 14 + - 15 + arch: + - x64 + steps: + - name: ๐Ÿงถ Get yarn cache directory path ๐Ÿงถ + id: yarn-cache-dir-path + run: echo "::set-output name=dir::$(yarn config get cacheFolder)" + - name: ๐Ÿ’ต Cache ๐Ÿ’ต + uses: actions/cache@v2 + id: yarn-cache + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-${{ matrix.node_version }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-${{ matrix.node_version }}-yarn- + ${{ runner.os }}-yarn- + - name: โ˜‘๏ธ Checkout โ˜‘๏ธ + uses: actions/checkout@v2 + - name: โ˜• Java โ˜• + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java_version }} + - name: ๐Ÿ Python ๐Ÿ + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: ๐Ÿ”‹ Node ๐Ÿ”‹ + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node_version }} + - name: ๐Ÿ’พ Install ๐Ÿ’พ + run: yarn install + - name: ๐Ÿงช Test (Node ${{ matrix.node_version }}, Java ${{ matrix.java_version }}) ๐Ÿงช + run: yarn test \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5b7fa48..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -dist: trusty -language: java -sudo: false -jdk: - - oraclejdk13 - - openjdk13 -env: - - NODE_VERSION="12" -before_install: - - nvm --version - - nvm install $NODE_VERSION -before_script: - - npm --version - - node --version - - npm install -script: - - npm test -notifications: - slack: rustyhorde:qUn6626kqV2JaMsGUFLlNvJa diff --git a/README.md b/README.md index 7e8446a..cf674dd 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ quite a few people, so I'm willing to add collaborators to this project who are message me at jason.g.ozias@gmail.com. ## Latest Version -- 0.7.4 +- 0.7.5 ## Installation - Release: ```npm i --save jdbc``` diff --git a/drivers/derby.jar b/drivers/derby.jar index b991f58..1c50529 100644 Binary files a/drivers/derby.jar and b/drivers/derby.jar differ diff --git a/drivers/derbyclient.jar b/drivers/derbyclient.jar index bf53e65..dde69cd 100644 Binary files a/drivers/derbyclient.jar and b/drivers/derbyclient.jar differ diff --git a/drivers/derbynet.jar b/drivers/derbynet.jar index 4888136..c51fb78 100644 Binary files a/drivers/derbynet.jar and b/drivers/derbynet.jar differ diff --git a/drivers/derbyrun.jar b/drivers/derbyrun.jar index fa0851d..e1f71c6 100644 Binary files a/drivers/derbyrun.jar and b/drivers/derbyrun.jar differ diff --git a/drivers/derbytools.jar b/drivers/derbytools.jar index 5fc7a7c..bb5ae45 100644 Binary files a/drivers/derbytools.jar and b/drivers/derbytools.jar differ diff --git a/package.json b/package.json index ea44608..94f4907 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jdbc", - "version": "0.7.4", + "version": "0.7.5", "description": "Node Module JDBC wrapper", "main": "index.js", "dependencies": { diff --git a/test/test-statement-adjust.js b/test/test-statement-adjust.js index b38535d..8b4f46d 100644 --- a/test/test-statement-adjust.js +++ b/test/test-statement-adjust.js @@ -97,7 +97,7 @@ module.exports = { test.ok(resultset); resultset.toObjArray(function (err, results) { test.equal(results.length, 50); - test.equal(results[0].NAME, 'Jason_0'); + test.ok(results[0].NAME.startsWith('Jason')); test.ok(results[0].DATE); test.ok(results[0].TIME); test.ok(results[0].TIMESTAMP); @@ -122,7 +122,7 @@ module.exports = { test.ok(resultset); resultset.toObjArray(function (err, results) { test.equal(results.length, 10); - test.equal(results[0].NAME, 'Jason_0'); + test.ok(results[0].NAME.startsWith('Jason')); test.done(); }); }); @@ -146,7 +146,7 @@ module.exports = { test.ok(resultset); resultset.toObjArray(function (err, results) { test.equal(results.length, 50); - test.equal(results[0].NAME, 'Jason_0'); + test.ok(results[0].NAME.startsWith('Jason')); test.done(); }); });