fix(ESv9): add xpack.security.enabled=false, health check, and unify … #55
Workflow file for this run
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: CI test | |
| on: | |
| # Triggers the workflow on push or pull request events | |
| - pull_request | |
| - push | |
| # Allows you to run this workflow manually from the Actions tab | |
| - workflow_dispatch | |
| jobs: | |
| install-and-test: | |
| runs-on: ubuntu-latest | |
| services: | |
| rumors-test-db: | |
| image: elasticsearch:9.2.2 | |
| ports: | |
| - 62223:9200 | |
| env: | |
| discovery.type: single-node | |
| xpack.security.enabled: 'false' | |
| options: >- | |
| --health-cmd "curl http://localhost:9200/_cat/health" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 10 | |
| steps: | |
| - name: Checkout rumors-db | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: 'cofacts/rumors-db' | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| cache: 'npm' | |
| - run: npm ci | |
| - name: Initialize DB indexes | |
| run: npm run schema | |
| env: | |
| ELASTICSEARCH_URL: http://localhost:62223 | |
| - name: Checkout opendata repo | |
| uses: actions/checkout@v4 | |
| - run: npm ci | |
| - run: npm run lint | |
| - name: Test if script can generate csv files from empty database | |
| run: npm start | |
| - run: ls data/ |