feat(shared): introduce retryable and throwable to fetch-utils #1256
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- next | |
- 1.x | |
jobs: | |
build-check-and-lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [lts/*, latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2.4.0 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "pnpm" | |
- run: corepack enable # https://nodejs.org/api/corepack.html | |
- run: pnpm install | |
- name: TS Build Check | |
run: pnpm run build | |
- name: Run eslint | |
run: pnpm run eslint | |
- name: Run prettier | |
run: pnpm run prettier:check | |
- name: Doc Build check | |
run: pnpm run docs:build | |
unit-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [lts/*, latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2.4.0 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "pnpm" | |
- run: corepack enable # https://nodejs.org/api/corepack.html | |
- run: pnpm install | |
- name: Run unit test | |
run: pnpm run test |