mapbox / node-pre-gyp

Node.js tool for easy binary deployment of C++ addons
BSD 3-Clause "New" or "Revised" License
1.11k stars 259 forks source link

Create GitHub Actions Test Setup #652

Open ronilan opened 2 years ago

ronilan commented 2 years ago

Overview

This pull request introduces a GitHub Actions test setup that runs tests against both the mock S3 and a real S3 bucket. It also includes a beefed up NW.js test. The Action covers (roughly) all that is covered in the Travis and AppVeyor setups. It can run from any forked repo independent of Mapbox bucket setups (see: #613).

This pull request comes "on top" of (i.e. includes changes from) #651 (which in turn comes "on top" of #648, #649, #650).

Configuration

Running the tests against a real S3 bucket requires configuring the following repo secrets:

When not configured, the S3 tests are skipped.

Change

Test

ronilan commented 2 months ago

Too many changes in a single PR.

It would be great to see a PR that only creates the GitHub Action. Other mods can be put into separate PRs once Appveyor and GitHub Actions are passing on modern versions of Node.js.

This one comes on top of #651. When #651 is merged all that is left in ##652 (this one) is the Push GitHub Action.