Replace node-fetch with the Node runtime fetch API (#43) #109
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: Javascript CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| ci: | |
| name: Javascript CI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Cache dependencies | |
| id: cached-yarn-dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: javascript/node_modules | |
| key: 18.x-${{ runner.OS }}-build-${{ hashFiles('javascript/yarn.lock') }} | |
| - name: Set up Node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18.x' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install dependencies | |
| if: steps.cached-yarn-dependencies.outputs.cache-hit != 'true' | |
| run: | | |
| yarn | |
| working-directory: javascript | |
| - name: Typecheck | |
| run: | | |
| yarn test:api | |
| working-directory: javascript | |
| - name: Build | |
| run: | | |
| yarn build | |
| working-directory: javascript | |
| - name: Test | |
| run: | | |
| yarn test --run | |
| working-directory: javascript |