Merge pull request #639 from davidyaha/dependabot/npm_and_yarn/types/… #246
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: | |
types: [opened, synchronize] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
redis: | |
image: redis | |
ports: | |
- 6379:6379 | |
redis-cluster: | |
image: grokzen/redis-cluster:7.0.10 | |
ports: | |
- 7006:7000 | |
- 7001:7001 | |
- 7002:7002 | |
- 7003:7003 | |
- 7004:7004 | |
- 7005:7005 | |
strategy: | |
matrix: | |
node-version: [lts/*] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Test | |
run: npm test | |