-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
36 additions
and
24 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Node.js CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
node-version: [[6.14, 10.x], [14.x], [16.x]] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
# Some modules used require a greater Node.js version than the lowest supported (listed above). Switch to the | ||
# second Node.js version in the tuple before installing to game the system (and switch back later before running | ||
# the actual tests). | ||
- name: Use Node.js ${{ matrix.node-version[1] || matrix.node-version[0] }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version[1] || matrix.node-version[0] }} | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
- name: Use Node.js ${{ matrix.node-version[0] }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version[0] }} | ||
- name: Run test suite | ||
run: yarn test | ||
env: | ||
# Set the API key for the integration tests. In the future, all tests will rely on snapshots. An API key will | ||
# then only be required to update those snapshots. The API key can then be removed from this file. | ||
API_KEY: test_4kQQbBMEFh8QAuKVaWdpKuRpVSsdVG |
This file was deleted.
Oops, something went wrong.