Skip to content
Latchkey

CI (engine.io-parser) workflow (socketio/socket.io)

The CI (engine.io-parser) workflow from socketio/socket.io, explained and optimized by Latchkey.

A

CI health: A - excellent

Point runs-on at Latchkey and get run de-duplication, self-healing for flaky steps, and up to 58% lower cost, applied automatically.

Grade your own workflow free or run it on Latchkey →
Source: socketio/socket.io.github/workflows/ci-engine.io-parser.ymlLicense MITView source

What it does

This is the CI (engine.io-parser) workflow from the socketio/socket.io repository, a real project running GitHub Actions. It is shown here with attribution under its MIT license.

Below, Latchkey shows a faster, safer version produced by its optimization engine.

The workflow

workflow (.yml)
name: CI (engine.io-parser)

on:
  push:
    branches:
      - '**'
    paths:
      - 'packages/engine.io-parser/**'
      - '.github/workflows/ci-engine.io-parser.yml'
  pull_request:
    paths:
      - 'packages/engine.io-parser/**'
      - '.github/workflows/ci-engine.io-parser.yml'

permissions:
  contents: read

jobs:
  test:
    runs-on: ubuntu-latest
    timeout-minutes: 10

    steps:
      - name: Checkout repository
        uses: actions/checkout@v6

      - name: Use Node.js 24
        uses: actions/setup-node@v6
        with:
          node-version: 24
          cache: npm

      - name: Install dependencies
        run: npm ci

      - name: Compile package
        run: npm run compile --workspace=engine.io-parser

      - name: Run tests
        run: npm test --workspace=engine.io-parser

# TODO: migrate tests from zuul to WebdriverIO
#      - name: Run browser tests
#        if: github.event_name == 'push'
#        run: npm test --workspace=engine.io-parser
#        env:
#          BROWSERS: 1
#          SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
#          SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}

The same workflow, on Latchkey

Removes redundant runs and caps runaway jobs. Added and changed lines are highlighted.

name: CI (engine.io-parser)
 
on:
  push:
    branches:
      - '**'
    paths:
      - 'packages/engine.io-parser/**'
      - '.github/workflows/ci-engine.io-parser.yml'
  pull_request:
    paths:
      - 'packages/engine.io-parser/**'
      - '.github/workflows/ci-engine.io-parser.yml'
 
permissions:
  contents: read
 
concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true
 
jobs:
  test:
    runs-on: latchkey-small
    timeout-minutes: 10
 
    steps:
      - name: Checkout repository
        uses: actions/checkout@v6
 
      - name: Use Node.js 24
        uses: actions/setup-node@v6
        with:
          node-version: 24
          cache: npm
 
      - name: Install dependencies
        run: npm ci
 
      - name: Compile package
        run: npm run compile --workspace=engine.io-parser
 
      - name: Run tests
        run: npm test --workspace=engine.io-parser
 
# TODO: migrate tests from zuul to WebdriverIO
#      - name: Run browser tests
#        if: github.event_name == 'push'
#        run: npm test --workspace=engine.io-parser
#        env:
#          BROWSERS: 1
#          SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
#          SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
 

What changed

What Latchkey heals here

This workflow has steps that commonly fail on transient issues (network, registries, flaky browsers). On Latchkey managed runners they are detected, retried, and self-healed instead of failing your build:

This workflow runs 1 job per trigger. On Latchkey the same minutes cost up to 58% less than GitHub-hosted, with zero queue time.

Actions used in this workflow