Elysia Tools

Browse tools, examples, visual explainers, and topic guides from one clear workspace.

Top Categories

Hubs

Language
ZHESPTRUFRDEEN

Elysia Tools

Navigation

DevOps

GitHub Actions: event filters, matrix cardinality and dependencies | Elysia Tools

Node.js CI/CD Pipeline. Read three bounded examples with explicit invented inputs.

Samples

Entries inside this sample collection

ConfigIntermediate

Node.js CI/CD Pipeline

Complete Node.js application CI/CD workflow with testing, building, security scanning, and deployment

Difficulty

7/10

Estimated time

35 min

Tags

github-actions, ci-cd, nodejs, automation

Prerequisites

GitHub Actions basics, Docker, Node.js, CI/CD concepts

config
name: Node.js CI/CD Pipeline

on:
  push:
    branches: [ main, develop ]
  pull_request:
    branches: [ main ]
  release:
    types: [ published ]

env:
  NODE_VERSION: '18.x'
  CACHE_VERSION: 'v1'

jobs:
  lint-and-security:
    name: Lint and Security Scan
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: ${{ env.NODE_VERSION }}
          cache: 'npm'

      - name: Install dependencies
        run: npm ci

      - name: Run ESLint
        run: npm run lint

      - name: Run security audit
        run: npm audit --audit-level=high

  test:
    name: Test Application
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [16.x, 18.x, 20.x]
    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Setup Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v4
        with:
          node-version: ${{ matrix.node-version }}
          cache: 'npm'

      - name: Install dependencies
        run: npm ci

      - name: Run tests
        run: npm test

      - name: Upload coverage
        uses: codecov/codecov-action@v3

  build:
    name: Build Application
    runs-on: ubuntu-latest
    needs: [lint-and-security, test]
    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: ${{ env.NODE_VERSION }}
          cache: 'npm'

      - name: Install dependencies
        run: npm ci

      - name: Build application
        run: npm run build

      - name: Build Docker image
        uses: docker/build-push-action@v5
        with:
          context: .
          push: true
          tags: myapp/nodejs-app:latest
ConfigIntermediate

Python ML/AI Pipeline

Complete Python machine learning pipeline with data processing, model training, testing, and deployment

Difficulty

8/10

Estimated time

40 min

Tags

github-actions, ml, python, mlops

Prerequisites

GitHub Actions, Python, Machine Learning, Docker, MLflow

config
name: Python ML/AI Pipeline

on:
  push:
    branches: [ main, develop ]
  pull_request:
    branches: [ main ]
  schedule:
    - cron: '0 2 * * 1'

env:
  PYTHON_VERSION: '3.9'

jobs:
  code-quality:
    name: Code Quality
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Set up Python
        uses: actions/setup-python@v4
        with:
          python-version: ${{ env.PYTHON_VERSION }}

      - name: Install dependencies
        run: pip install -r requirements.txt

      - name: Run linting
        run: |
          black --check .
          flake8 .

  test:
    name: Test Application
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: ['3.8', '3.9', '3.10']
    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v4
        with:
          python-version: ${{ matrix.python-version }}

      - name: Install dependencies
        run: pip install -r requirements.txt

      - name: Run tests
        run: pytest tests/ --cov=src

      - name: Upload coverage
        uses: codecov/codecov-action@v3
ConfigComplex

Multi-Platform Build Pipeline

Cross-platform CI/CD pipeline for desktop and mobile applications with matrix builds and artifact management

Difficulty

9/10

Estimated time

45 min

Tags

github-actions, multi-platform, release, automation

Prerequisites

GitHub Actions advanced, Multi-platform development, CI/CD, Release management

config
name: Multi-Platform Build Pipeline

on:
  push:
    branches: [ main, develop ]
    tags: [ 'v*' ]
  pull_request:
    branches: [ main ]

env:
  BUILD_NUMBER: ${{ github.run_number }}
  COMMIT_SHA: ${{ github.sha }}

jobs:
  configure:
    name: Configure Build
    runs-on: ubuntu-latest
    outputs:
      version: ${{ steps.version.outputs.version }}
      build-matrix: ${{ steps.matrix.outputs.matrix }}
    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Generate version
        id: version
        run: |
          VERSION="1.0.${{ env.BUILD_NUMBER }}"
          echo "version=$VERSION" >> $GITHUB_OUTPUT

      - name: Generate build matrix
        id: matrix
        run: |
          MATRIX='{"include":[{"platform":"windows","os":"windows-latest"},{"platform":"macos","os":"macos-latest"},{"platform":"linux","os":"ubuntu-latest"}]}'
          echo "matrix=$MATRIX" >> $GITHUB_OUTPUT

  build:
    name: Build - ${{ matrix.platform }}
    runs-on: ${{ matrix.os }}
    needs: configure
    strategy:
      fail-fast: false
      matrix: ${{ fromJson(needs.configure.outputs.build-matrix) }}
    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Build application
        run: |
          npm run build -- --${{ matrix.platform }}

      - name: Upload artifacts
        uses: actions/upload-artifact@v3
        with:
          name: build-${{ matrix.platform }}-${{ env.BUILD_NUMBER }}
          path: dist/

Tools

Tools frequently paired with this sample

Related

Related sample collections

Related

Related workflows

Tool usage guide

Sample-focused context for search and workflow understanding

Overview

Read only the named fragments in Node.js CI/CD Pipeline. Do not execute the collection or connect a cloud account.

How to isolate the reading

Follow the named expression using the literal values below. Other blocks are independent fragments, not a verified complete application.

The full sample includes a publishing step. These exercises stop at event and graph declarations and do not authorize running any job, build, upload or image push. Versions are historical values.

How it works

  1. 1Keep these exercises on paper: no deployment, request, credentials, account lookup or resource change.

Edge cases & common failures

  • Verification boundary

    These are source-derived expectations, not cloud execution results. Provider compatibility, grants, billing and deployment are not verified.

Examples

1. Read on.push / pull_request / release

How to use

In Node.js CI/CD Pipeline, locate on.push / pull_request / release. Use only these synthetic values: push develop;pull_request target develop;release published.

Outcome

Expected: true;false;true. Only the listed event filters are compared; no workflow is dispatched.

2. Read jobs.test.strategy.matrix.node-version

How to use

In Node.js CI/CD Pipeline, locate jobs.test.strategy.matrix.node-version. Use only these synthetic values: [16.x,18.x,20.x].

Outcome

Expected: 3. One matrix axis with three entries describes three combinations, not three successful jobs.

3. Read jobs.build.needs

How to use

In Node.js CI/CD Pipeline, locate jobs.build.needs. Use only these synthetic values: [lint-and-security,test].

Outcome

Expected: lint-and-security→build;test→build. needs gives build two prerequisites; it does not impose an order between those prerequisites.

Hub

Infer JSON Schema from Samples and Spreadsheets

Derive a reviewable JSON Schema draft from representative JSON samples or XLSX rows, then inspect types, requiredness, nulls, and outliers before treating it as a contract.

Hub

Structural Beam and Member Preliminary Checks

Screen a beam or slender member from support case and loading through reactions, section properties, bending and shear stress, deflection, and optional Euler buckling. Use the results for preliminary checking only, not design approval.

Hub

Population Ecology, Biodiversity, and Food Web Calculators

Use educational ecology models to explore population growth, carrying capacity, species interactions, sampled biodiversity, and trophic energy transfer.

Hub

Math and Number Conversion Workflow

Convert measurements, number bases, fractions, scientific notation, Roman numerals, and byte or bit values with a clear precision check.

Home
Tools3215
Samples593
Visualizations472
Viewers103
Hubs239
Tags333
Images, Audio & Video657

Image, audio, and video processing, conversion, and optimization tools

Math, Date & Finance647

Calculators, numerics, date logic, statistics, and finance tools

Design & Color298

Color, layout, graphics, visual styling, and design helper tools

Text & Writing209

Writing, cleanup, formatting, extraction, and text analysis tools

Developer & Web194

Developer utilities, networking, web debugging, and automation helpers

Conversion & Encoding175

Format, file, archive, unit, and encoding conversion tools

Lead Generation Quiz Launch and Contact Handoff
Memorial Drafts: Family Review and Print Handoff
Private Habit Records: Backup, Restore and Sharing Review
Article to X and LinkedIn Drafts: Fact Review and Handoff
Markdown Interactive Deck Review and Offline Handoff

© 2026 Elysia Tools. All rights reserved.

DocsPricingAboutTerms of ServicePrivacy PolicyCookiesContact

Document Tools

GitHub README to PDF

Fetch a GitHub README and render it to a styled PDF

Development

GitHub Profile README Studio

Generate a complete GitHub profile README — banner, stats tiles, contribution heatmap, 3D contribution skyline and project cards — baked once into static, themeable SVG assets. No badge services that can go down; commit the SVGs next to your README and the profile never breaks.

Testing

Postman Collections - API Testing

Comprehensive Postman collection examples including API testing, automation scripts, environment variables, mock servers, and advanced testing patterns for REST APIs

CI/CD

CircleCI Configuration Samples

CircleCI configuration examples including workflows, orbs, caching, and advanced deployment strategies

CI/CD

GitLab CI Samples

GitLab CI/CD configuration examples including multi-stage pipelines, caching, artifacts, and deployment strategies

CI/CD

Jenkins Pipeline Samples

Jenkins CI/CD pipeline configuration examples including declarative and scripted pipelines for various deployment scenarios

DevOps

ELK Stack Log Analysis Samples

Comprehensive ELK Stack (Elasticsearch, Logstash, Kibana) samples for log aggregation, processing, and visualization in distributed systems

DevOps

Docker & Kubernetes Samples

Essential container orchestration examples including Dockerfiles, Docker Compose, and Kubernetes manifests for modern application deployment