fix(deps): update all non-major dependencies #4665
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: test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
paths-ignore: | |
- 'website/**' | |
env: | |
NODE_NO_WARNINGS: true | |
NODE_OPTIONS: '--max-old-space-size=8192' | |
CI: true | |
jobs: | |
type-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Master | |
uses: actions/checkout@v4 | |
- name: Setup env | |
uses: the-guild-org/shared-config/setup@main | |
with: | |
nodeVersion: 20 | |
- name: Type Check | |
run: yarn ts:check | |
unit: | |
name: unit / node ${{matrix.node-version}} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18, 20, 21] | |
fail-fast: false | |
steps: | |
- name: Checkout Master | |
uses: actions/checkout@v4 | |
- name: Setup env | |
uses: the-guild-org/shared-config/setup@main | |
with: | |
nodeVersion: ${{ matrix.node-version }} | |
- name: Cache Jest | |
uses: actions/cache@v4 | |
with: | |
path: .cache/jest | |
key: ${{ runner.os }}-${{matrix.node-version}}-jest-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-${{matrix.node-version}}-jest- | |
- name: Test | |
if: ${{ matrix.node-version == 20 }} | |
run: yarn test --ci | |
- name: Test | |
if: ${{ matrix.node-version != 20 }} | |
uses: nick-fields/retry@v3 | |
with: | |
timeout_minutes: 10 | |
max_attempts: 5 | |
command: yarn test --detectLeaks --detectOpenHandles --ci | |
integration: | |
name: integration / node ${{matrix.node-version}} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18, 20, 21] | |
fail-fast: false | |
steps: | |
- name: Checkout Master | |
uses: actions/checkout@v4 | |
- name: Setup env | |
uses: the-guild-org/shared-config/setup@main | |
with: | |
nodeVersion: ${{ matrix.node-version }} | |
- name: Cache Jest | |
uses: actions/cache@v4 | |
with: | |
path: .cache/jest | |
key: ${{ runner.os }}-${{matrix.node-version}}-jest-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-${{matrix.node-version}}-jest- | |
- name: Build Packages | |
run: yarn build | |
- name: Test | |
run: yarn test:integration --ci | |
env: | |
CI: true | |
esm: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Master | |
uses: actions/checkout@v4 | |
- name: Setup env | |
uses: the-guild-org/shared-config/setup@main | |
with: | |
nodeVersion: 20 | |
- name: Build Packages | |
run: yarn build | |
- name: Test ESM | |
run: yarn esm:check |