Skip to content

log docker details about free space #1264

log docker details about free space

log docker details about free space #1264

Workflow file for this run

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