Skip to content

Merge pull request #400 from lepikhinb/chunk-keys-to-delete #1833

Merge pull request #400 from lepikhinb/chunk-keys-to-delete

Merge pull request #400 from lepikhinb/chunk-keys-to-delete #1833

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node:
- 16
- 20
serverless:
- "2"
- "3"
- "4"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package.json') }}
- run: npm i
- run: npm i serverless@${{ matrix.serverless }}
- run: npm i @serverless/test@8
# Only install @serverless/test@8 for Serverless v2
if: matrix.serverless != 'latest'
- name: Run jest unit tests
env:
NODE_OPTIONS: "--max_old_space_size=4096"
run: npm test
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
- run: npm i
- run: npm run check-format
- run: npm run lint
type:
name: Type
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
- run: npm i
- name: Typescript checks
run: tsc --noEmit