feat: support abort signal for fetch calls #295
Workflow file for this run
This file contains hidden or 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: Unit/Integration Tests | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| - ready_for_review | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Checkout submodules # checkout rest | |
| shell: bash | |
| run: | | |
| # If your submodules are configured to use SSH instead of HTTPS please uncomment the following line | |
| git config --global url."https://github.com/".insteadOf "[email protected]:" | |
| auth_header="$(git config --local --get http.https://github.com/.extraheader)" | |
| git submodule sync --recursive | |
| git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 | |
| - uses: actions/setup-node@v1 | |
| with: | |
| node-version: "15.x" | |
| - name: cache node modules | |
| uses: actions/cache@v1 | |
| with: | |
| path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS | |
| key: npm-${{ hashFiles('package-lock.json') }} | |
| restore-keys: | | |
| npm-${{ hashFiles('package-lock.json') }} | |
| npm- | |
| - run: npm i -g [email protected] | |
| - run: npm install | |
| - run: npm test | |
| env: | |
| CI: true |