Upgrade vitest and babel #57
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: Tests | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize, ready_for_review] | |
| jobs: | |
| integration-tests: | |
| runs-on: ubuntu-latest | |
| env: | |
| CLIENT_ID: ${{secrets.CLIENT_ID}} | |
| CLIENT_SECRET: ${{secrets.CLIENT_SECRET}} | |
| SCOPE: ${{secrets.SCOPE}} | |
| AUTH_URL: ${{secrets.AUTH_URL}} | |
| API_URL: ${{secrets.API_URL}} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Get yarn cache directory path | |
| id: yarn-cache-dir-path | |
| run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | |
| - uses: actions/cache@v4 | |
| id: yarn-cache | |
| with: | |
| path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
| key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: ${{ runner.os }}-yarn- | |
| - name: Use Node.js 20.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| - name: Install dependencies | |
| uses: nick-fields/retry@v2 | |
| with: | |
| retry_on: error | |
| timeout_minutes: 5 | |
| max_attempts: 2 | |
| command: yarn | |
| - name: Typecheck | |
| run: yarn typecheck | |
| - name: Run ALL tests | |
| run: yarn test:ci | |
| - name: Verify generated methods are up-to-date | |
| run: | | |
| yarn build | |
| git diff --exit-code | |
| exit $? |