Skip to content

Support keyv@5.x

Support keyv@5.x #111

Workflow file for this run

name: CI
on:
- push
- pull_request
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
pkg: [{ keyv: '3.x', suite: '=1.6.11' }, { keyv: '4.x', suite: '1.x' }]
node: ['14.x', '16.x', '18.x', '20.x', '22.x']
include:
- pkg: { keyv: '5.x', suite: '2.x' }
node: '20.x'
- pkg: { keyv: '5.x', suite: '2.x' }
node: '22.x'
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Node.js ${{matrix.node}}
uses: actions/setup-node@v4
with:
node-version: ${{matrix.node}}
- name: Configure Firestore credentials
run: |
echo "$S" > .google-credentials.json
env:
S: ${{secrets.FIRESTORE_CREDS}}
- name: Install dependencies
run: npm install
- name: Install Keyv ${{matrix.pkg.keyv}}
run: npm install keyv@${{matrix.pkg.keyv}} @keyv/test-suite@${{matrix.pkg.suite}}
- name: Run tests
run: npm run test:ava
env:
GOOGLE_APPLICATION_CREDENTIALS: .google-credentials.json
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Install Node.js LTS
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Run standard
run: npm run test:lint