Merge pull request #26 from niledatabase/newchanges #65
This file contains hidden or 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: | |
| 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 |