Port bugfix from SDK #2111
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: Run tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- run: curl https://get.volta.sh | bash | |
# - name: Use Node.js ${{ matrix.node-version }} | |
# uses: actions/setup-node@v3 | |
# with: | |
# node-version: ${{ matrix.node-version }} | |
# - run: yarn set version 4 | |
- run: ~/.volta/bin/volta list | |
# I added this to suppress this warning: | |
# YN0018: typescript@patch:typescript@npm%3A5.1.3#optional!builtin<compat/typescript>::version=5.1.3&hash=5da071: The remote archive doesn't match the expected checksum | |
- run: YARN_CHECKSUM_BEHAVIOR=ignore ~/.volta/bin/yarn install --immutable | |
env: | |
OPENAI_API_KEY: 'FAKE-OPENAI-API-KEY' | |
- run: ~/.volta/bin/yarn test |