Add assert and test packages #329
Workflow file for this run
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: Session Integration Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '.github/workflows/session-integration.yaml' | |
| - 'packages/session/**' | |
| - 'packages/session-storage-memcache/**' | |
| - 'packages/session-storage-redis/**' | |
| - 'pnpm-workspace.yaml' | |
| - 'package.json' | |
| pull_request: | |
| paths: | |
| - '.github/workflows/session-integration.yaml' | |
| - 'packages/session/**' | |
| - 'packages/session-storage-memcache/**' | |
| - 'packages/session-storage-redis/**' | |
| - 'pnpm-workspace.yaml' | |
| - 'package.json' | |
| jobs: | |
| memcache-integration: | |
| name: Memcache Integration | |
| runs-on: ubuntu-latest | |
| services: | |
| memcached: | |
| image: memcached:1.6 | |
| ports: | |
| - 11211:11211 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: 'package.json' | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Run memcache integration tests | |
| env: | |
| SESSION_MEMCACHE_INTEGRATION: '1' | |
| SESSION_MEMCACHE_SERVER: 127.0.0.1:11211 | |
| run: node --disable-warning=ExperimentalWarning --test './packages/session-storage-memcache/src/lib/memcache-storage.integration.test.ts' | |
| redis-integration: | |
| name: Redis Integration | |
| runs-on: ubuntu-latest | |
| services: | |
| redis: | |
| image: redis:7 | |
| ports: | |
| - 6379:6379 | |
| options: >- | |
| --health-cmd="redis-cli ping || exit 1" | |
| --health-interval=10s | |
| --health-timeout=5s | |
| --health-retries=5 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: 'package.json' | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Run redis integration tests | |
| env: | |
| SESSION_REDIS_INTEGRATION: '1' | |
| SESSION_REDIS_URL: redis://127.0.0.1:6379 | |
| run: node --disable-warning=ExperimentalWarning --test './packages/session-storage-redis/src/lib/redis-storage.integration.test.ts' |