Skip to content

test: updated tests to be atomic #1242

test: updated tests to be atomic

test: updated tests to be atomic #1242

Workflow file for this run

name: Node Agent CI
on: [push, pull_request, workflow_dispatch]
jobs:
versioned-internal:

Check failure on line 8 in .github/workflows/ci-workflow.yml

View workflow run for this annotation

GitHub Actions / Node Agent CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci-workflow.yml (Line: 8, Col: 3): The workflow must contain at least one job with no dependencies.
needs: skip_if_release
if: needs.skip_if_release.outputs.should_skip != 'true'
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: 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: Archive Versioned Test Coverage
uses: actions/upload-artifact@v3
with:
name: versioned-tests-${{ matrix.node-version }}
path: ./coverage/versioned/lcov.info