From 5c424d9ccfa6f2053e69d38cc1001f2c9227385d Mon Sep 17 00:00:00 2001 From: singingbush Date: Fri, 9 Jun 2023 14:42:15 +0100 Subject: [PATCH] add GitHub action and update deps --- .github/workflows/build.yml | 40 +++++++++++++++++++++++++++++++++++++ package.json | 18 ++++++++--------- 2 files changed, 49 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..dda341a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,40 @@ +name: Build PR + +on: + push: + branches: + - master + pull_request: + types: + - opened + - reopened + - edited + - synchronize + + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Git clone the repository + uses: actions/checkout@v3 + + - name: Install Node + uses: actions/setup-node@v3 + with: + node-version: '14.x' + + - name: Npm Install + run: npm install + env: + NPM_TOKEN: ${{ secrets.NPM_GITHUB_SECRET }} + + - name: Npm Build + run: npm build + env: + NPM_TOKEN: ${{ secrets.NPM_GITHUB_SECRET }} + + - name: Npm Test + run: npm test + env: + NPM_TOKEN: ${{ secrets.NPM_GITHUB_SECRET }} diff --git a/package.json b/package.json index 0e32145..55608ed 100644 --- a/package.json +++ b/package.json @@ -40,21 +40,21 @@ }, "homepage": "https://github.com/chasdevs/avro-to-typescript#readme", "dependencies": { - "avsc": "^5.4.13", - "command-line-args": "^5.0.2", - "command-line-usage": "^5.0.5", + "avsc": "^5.7.7", + "command-line-args": "^5.2.1", + "command-line-usage": "^7.0.1", "fs-extra": "^5.0.0" }, "devDependencies": { "@degordian/standards": "^1.0.8", "@degordian/testing-toolkit": "^1.0.18", - "@types/args": "^3.0.0", - "@types/command-line-args": "^4.0.3", - "@types/command-line-usage": "^5.0.1", + "@types/args": "^5.0.0", + "@types/command-line-args": "^5.2.0", + "@types/command-line-usage": "^5.0.2", "@types/fs-extra": "^5.0.3", - "@types/node": "^9.6.21", - "mocha-typescript": "^1.1.16", + "@types/node": "^9.6.61", + "mocha-typescript": "^1.1.17", "tslint": "^5.10.0", - "typescript": "^2.9.1" + "typescript": "^4.1.6" } }