docs: update #393
Workflow file for this run
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: Testing | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Node.js 20 | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
check-latest: true | |
architecture: x64 | |
cache: 'pnpm' | |
- name: Cache Docker images | |
uses: ScribeMD/[email protected] | |
with: | |
key: docker-${{ runner.os }}-${{ hashFiles('compose.yaml') }} | |
- name: Run docker-compose | |
uses: hoverkraft-tech/[email protected] | |
with: | |
compose-file: './compose.yaml' | |
up-flags: '-d' | |
down-flags: '-v' | |
- run: docker compose exec cluster-m1 redis-cli -a mycluster --cluster create 127.0.0.1:7380 127.0.0.1:7381 127.0.0.1:7382 --cluster-yes | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm -F "@liaoliaots/nestjs-redis" run lint | |
- run: pnpm -F "@liaoliaots/nestjs-redis" run test | |
- run: pnpm -F "@liaoliaots/nestjs-redis" run test:e2e |