Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(test runner): add concurrency limit option #260

Merged
merged 6 commits into from
May 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 111 additions & 6 deletions .github/workflows/ci_coverage-linux.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: '☔️ CI — Coverage'
name: '🐧 CI — Coverage'

on:
push:
Expand All @@ -8,12 +8,12 @@ on:
workflow_dispatch:

jobs:
node:
sequential:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
name: Linux & Node.js
name: Linux (Sequential)
steps:
- name: ➕ Actions - Checkout
uses: actions/checkout@v4
Expand All @@ -34,11 +34,116 @@ jobs:
run: npm ci

- name: 🧪 Checking for Coverage
run: npm run test:c8
run: npm run test:c8:sequential

- name: ☔️ Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: linux-nodejs
name: codecov-umbrella-linux-node
flags: linux-sequential
name: codecov-umbrella-linux-sequential

sequential-options:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
name: Linux (Sequential & Options)
steps:
- name: ➕ Actions - Checkout
uses: actions/checkout@v4

- name: ➕ Actions - Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: '22.x'

- name: ➕ Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-linux-${{ hashFiles('package-lock.json') }}
restore-keys: npm-linux-

- name: 📦 Installing Dependencies
run: npm ci

- name: 🧪 Checking for Coverage
run: npm run test:c8:sequential:options

- name: ☔️ Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: linux-sequential-options
name: codecov-umbrella-linux-sequential-options

parallel:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
name: Linux (Parallel)
steps:
- name: ➕ Actions - Checkout
uses: actions/checkout@v4

- name: ➕ Actions - Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: '22.x'

- name: ➕ Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-linux-${{ hashFiles('package-lock.json') }}
restore-keys: npm-linux-

- name: 📦 Installing Dependencies
run: npm ci

- name: 🧪 Checking for Coverage
run: npm run test:c8:parallel

- name: ☔️ Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: linux-parallel
name: codecov-umbrella-linux-parallel

parallel-options:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
name: Linux (Parallel & Options)
steps:
- name: ➕ Actions - Checkout
uses: actions/checkout@v4

- name: ➕ Actions - Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: '22.x'

- name: ➕ Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-linux-${{ hashFiles('package-lock.json') }}
restore-keys: npm-linux-

- name: 📦 Installing Dependencies
run: npm ci

- name: 🧪 Checking for Coverage
run: npm run test:c8:parallel:options

- name: ☔️ Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: linux-parallel-options
name: codecov-umbrella-linux-parallel-options
117 changes: 111 additions & 6 deletions .github/workflows/ci_coverage-osx.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: '☔️ CI — Coverage'
name: '🍎 CI — Coverage'

on:
push:
Expand All @@ -8,12 +8,12 @@ on:
workflow_dispatch:

jobs:
node:
sequential:
runs-on: macos-latest
timeout-minutes: 5
strategy:
fail-fast: false
name: macOS & Node.js
name: macOS (Sequential)
steps:
- name: ➕ Actions - Checkout
uses: actions/checkout@v4
Expand All @@ -34,11 +34,116 @@ jobs:
run: npm ci

- name: 🧪 Checking for Coverage
run: npm run test:c8
run: npm run test:c8:sequential

- name: ☔️ Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: osx-nodejs
name: codecov-umbrella-osx-node
flags: osx-sequential
name: codecov-umbrella-osx-sequential

sequential-options:
runs-on: macos-latest
timeout-minutes: 5
strategy:
fail-fast: false
name: macOS (Sequential & Options)
steps:
- name: ➕ Actions - Checkout
uses: actions/checkout@v4

- name: ➕ Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-osx-${{ hashFiles('package-lock.json') }}
restore-keys: npm-osx-

- name: ➕ Actions - Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: '22.x'

- name: 📦 Installing Dependencies
run: npm ci

- name: 🧪 Checking for Coverage
run: npm run test:c8:sequential:options

- name: ☔️ Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: osx-sequential-options
name: codecov-umbrella-osx-sequential-options

parallel:
runs-on: macos-latest
timeout-minutes: 5
strategy:
fail-fast: false
name: macOS (Parallel)
steps:
- name: ➕ Actions - Checkout
uses: actions/checkout@v4

- name: ➕ Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-osx-${{ hashFiles('package-lock.json') }}
restore-keys: npm-osx-

- name: ➕ Actions - Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: '22.x'

- name: 📦 Installing Dependencies
run: npm ci

- name: 🧪 Checking for Coverage
run: npm run test:c8:parallel

- name: ☔️ Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: osx-parallel
name: codecov-umbrella-osx-parallel

parallel-options:
runs-on: macos-latest
timeout-minutes: 5
strategy:
fail-fast: false
name: macOS (Parallel & Options)
steps:
- name: ➕ Actions - Checkout
uses: actions/checkout@v4

- name: ➕ Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-osx-${{ hashFiles('package-lock.json') }}
restore-keys: npm-osx-

- name: ➕ Actions - Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: '22.x'

- name: 📦 Installing Dependencies
run: npm ci

- name: 🧪 Checking for Coverage
run: npm run test:c8:parallel:options

- name: ☔️ Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: osx-parallel-options
name: codecov-umbrella-osx-parallel-options
Loading
Loading