diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml new file mode 100644 index 0000000..20adcc3 --- /dev/null +++ b/.github/workflows/deno.yml @@ -0,0 +1,39 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# This workflow will install Deno and run tests across stable and nightly builds on Windows, Ubuntu and macOS. +# For more information see: https://github.com/denolib/setup-deno + +name: Fetch + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + test: + runs-on: ${{ matrix.os }} # runs a test on Ubuntu, Windows and macOS + + strategy: + matrix: + deno: ["v1.x", "nightly"] + os: [macOS-latest, windows-latest, ubuntu-latest] + + steps: + - name: Setup repo + uses: actions/checkout@v2 + + - name: Setup Deno + uses: denolib/setup-deno@c7d7968ad4a59c159a777f79adddad6872ee8d96 + with: + deno-version: ${{ matrix.deno }} # tests across multiple Deno versions + + - name: Cache Dependencies + run: deno cache deps.ts + + - name: Run Tests + run: deno test -A --unstable diff --git a/package.json b/package.json index 5d32cca..9074dbf 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "classnames": "^2.2.6", "crypto": "^1.0.1", "lodash": "^4.17.11", - "mocha": "^8.1.3", + "mocha": "^9.1.2", "moment": "^2.25.3", "omit.js": "^2.0.2", "path-to-regexp": "2.4.0", @@ -69,7 +69,7 @@ "umi": "^3.2.14", "umi-request": "^1.0.8", "use-merge-value": "^1.0.1", - "xlsx": "^0.16.9" + "xlsx": "^0.18.0" }, "devDependencies": { "@ant-design/pro-cli": "^2.0.2",