test: run on GitHub Actions #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dcodeIO/setup-node-nvm@v5 | |
with: | |
node-version: iojs | |
- run: npm install | |
- run: npm test | |
env: | |
# Node.js/io.js bundle their own CA store, which is now substantially out of date. io.js predated the `--use-openssl-ca` flag, so we have to disable TLS verification entirely. | |
# Upon upgrading this test suite to a modern Node.js version, this should be removed. | |
NODE_TLS_REJECT_UNAUTHORIZED: '0' |