Skip to content

Merge pull request #26 from niledatabase/newchanges #65

Merge pull request #26 from niledatabase/newchanges

Merge pull request #26 from niledatabase/newchanges #65

Workflow file for this run

name: test
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: |
npm install
git diff --exit-code package-lock.json || (echo "Error: package-lock.json was modified by npm install. Please commit the updated package-lock.json" && exit 1)
- name: Build
run: npm run build
- name: Run linting
run: npm run lint
- name: Run tests
env:
NILEDB_USER: ${{ secrets.NILEDB_USER }}
NILEDB_PASSWORD: ${{ secrets.NILEDB_PASSWORD }}
NILEDB_POSTGRES_URL: ${{ secrets.NILEDB_POSTGRES_URL }}
NILEDB_API_URL: ${{ secrets.NILEDB_API_URL }}
run: npm test