diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 28afb32b..00000000 --- a/.appveyor.yml +++ /dev/null @@ -1,25 +0,0 @@ -environment: - NODEJS_VERSION: "10" - PREBUILD_UPLOAD: - secure: oNyyLE7/Oq3TUGZPz6DkLFPUuQzc8FiFS1iuPp7LZ2fyOP/UF4Np4NzJmWcXVyY/ - -platform: - - x64 - - x86 - -install: - - ps: Install-Product node $env:NODEJS_VERSION $env:Platform - - git submodule update --init --recursive - - npm install - -build: off - -test_script: - - npm test - -branches: - only: - - master - - /^v.*$/ - -deploy_script: IF "%APPVEYOR_REPO_TAG%" == "true" (npm run prebuild && npm run prebuild:upload -u %PREBUILD_UPLOAD%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..d85c419b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,37 @@ +name: build + +on: + push: + branches: + - master + pull_request: + branches: + - master + +env: + NODE_BUILD_CMD: npx --no-install prebuild -t 10.12.0 -t 12.13.0 --strip + ELECTRON_BUILD_CMD: npx --no-install prebuild -r electron -t 3.0.0 -t 4.0.0 -t 4.0.4 -t 5.0.0 --strip + +jobs: + + test: + strategy: + matrix: + os: + - windows-latest + node: + - 10 + fail-fast: false + name: Testing Node ${{ matrix.node }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + with: + submodules: true + fetch-depth: 0 + - uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node }} + + - run: npm install + - run: npm test