-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
1 parent
6a101c2
commit 2704155
Showing
2 changed files
with
47 additions
and
1 deletion.
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,46 @@ | ||
name: CI | ||
on: | ||
push: | ||
|
||
env: | ||
SAUCE_USERNAME: shtylman-superagent | ||
SAUCE_ACCESS_KEY: 39a45464-cb1d-4b8d-aa1f-83c7c04fa673 | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- node-version: 12.x | ||
# test-on-brower: 1 | ||
- node-version: 14.x | ||
# test-http2: 1 | ||
- node-version: 16.x | ||
# test-http2: 1 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Node - ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Cache node modules | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
# npm cache files are stored in `~/.npm` on Linux/macOS | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} | ||
- name: Install Dependencies | ||
run: yarn install | ||
- name: Build | ||
run: npm run build | ||
- name: Test On Node ${{ matrix.node-version }} | ||
env: | ||
BROWSER: ${{ matrix.test-on-brower }} | ||
HTTP2_TEST: ${{ matrix.test-http2 }} | ||
run: | | ||
npm run test | ||
npm run coverage |
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