From a980814e6279813bbe8a63e2fdbed938ed47d42b Mon Sep 17 00:00:00 2001 From: RasPhilCo Date: Mon, 11 May 2020 09:17:15 -0700 Subject: [PATCH] chore: add windows ci via github actions (#65) --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ appveyor.yml | 20 -------------------- 2 files changed, 26 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 appveyor.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..dc1ca463 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: windows-latest + strategy: + matrix: + node-version: [10.x, 12.x] + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: yarn install + env: + CI: true + - run: yarn test + env: + CI: true diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 9d1ca53b..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,20 +0,0 @@ -environment: - nodejs_version: "10" -cache: - - '%LOCALAPPDATA%\Yarn -> appveyor.yml' - - node_modules -> yarn.lock - -install: - - ps: Install-Product node $env:nodejs_version x64 - - yarn add -D nyc@11 @oclif/nyc-config@0 -test_script: - - .\bin\run help - - .\node_modules\.bin\nyc --nycrc-path node_modules/@oclif/nyc-config/.nycrc yarn test -after_test: - - .\node_modules\.bin\nyc --nycrc-path node_modules/@oclif/nyc-config/.nycrc report --reporter text-lcov > coverage.lcov - - ps: | - $env:PATH = 'C:\msys64\usr\bin;' + $env:PATH - Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh - bash codecov.sh - -build: off