tried starting es with docker-compose #1261
Workflow file for this run
This file contains 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: Node Agent CI | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
versioned-internal: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x, 20.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Dependencies | |
run: npm ci | |
- name: docker version | |
run: docker compose -v | |
- name: Run Docker Services | |
run: npm run services | |
- name: Run Versioned Tests | |
run: TEST_CHILD_TIMEOUT=600000 npm run versioned:internal | |
env: | |
VERSIONED_MODE: --minor | |
JOBS: 4 # 2 per CPU seems to be the sweet spot in GHA (July 2022) | |
C8_REPORTER: lcovonly | |
- name: Upload elastic container logs | |
if: failure() | |
uses: jwalton/gh-docker-logs@v2 | |
with: | |
images: 'docker.elastic.co/elasticsearch/elasticsearch:8.7.1' | |
dest: './logs' | |
- name: Tar logs | |
if: failure() | |
run: tar cvzf ./logs.tgz ./logs | |
- name: Upload logs to GitHub | |
if: failure() | |
uses: actions/upload-artifact@master | |
with: | |
name: logs.tgz | |
path: ./logs.tgz | |