Bump @types/node from 22.5.0 to 22.7.5 #1412
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: Test | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4.0.3 | |
with: | |
node-version: 20.x | |
- run: npm ci | |
- name: save cache | |
uses: actions/cache@v4.0.2 | |
with: | |
path: | | |
node_modules | |
dist | |
key: ${{ runner.os }}-cache-${{ hashFiles('**/package-lock.json') }} | |
lint: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4.0.3 | |
with: | |
node-version: 20.x | |
- name: download cache | |
uses: actions/cache@v4.0.2 | |
with: | |
path: | | |
node_modules | |
dist | |
key: ${{ runner.os }}-cache-${{ hashFiles('**/package-lock.json') }} | |
- run: npm run lint | |
test: | |
runs-on: ubuntu-latest | |
needs: build | |
services: | |
redis: | |
image: redis | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 6379:6379 | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [14.x, 16.x, 18.x, 20.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4.0.3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: download cache | |
uses: actions/cache@v4.0.2 | |
with: | |
path: | | |
node_modules | |
dist | |
key: ${{ runner.os }}-cache-${{ hashFiles('**/package-lock.json') }} | |
- run: npm rebuild | |
- run: ./node_modules/.bin/jest --ci --forceExit | |
env: | |
REDIS_HOST: localhost | |
REDIS_PORT: 6379 | |
complete: | |
runs-on: ubuntu-latest | |
needs: [test, lint] | |
steps: | |
- run: echo "Done!" |