Open ronilan opened 2 years 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.
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:
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
S3_BUCKET
When not configured, the S3 tests are skipped.
Change
Created GitHub Actions Test Setup (7b8b09a).
Modified existing configurations to work with GitHub Actions Test setup (4cbbc79).
scripts/test-node-webkit.sh
so that it can now accept an NW.js version as input. This allows running the script in a GitHub Actions matrix.test/run.util.js
so that it does not set--msvs_version=2015
when running in GitHub Actions. This is required because current GitHub Actions runner do not support VS Studio 2015.test:s3
topackage.json
that runs only the s3 tests. This is required because invokingnpx tape test/s3.test.js
on windows does not work as expected.test/proxy-bcrypt.test.js
. Removed uneeded CI conditionals and modified download directory setup/cleanup. Latter was required due to concurrency issues with running tests on Mac, resulting in uncatchable errors during directory removal originating fromrimraf
.Test