Skip to content

Refactor: improve compatibility with opa clients and tests #10

Refactor: improve compatibility with opa clients and tests

Refactor: improve compatibility with opa clients and tests #10

Workflow file for this run

name: Unit tests
on:
push:
paths-ignore:
- '*.md'
pull_request:
paths-ignore:
- '*.md'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 'node']
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: package.json
- name: Install dependencies
run: npm install
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Run tests
run: npm test