Skip to content

ci: add GitHub Actions CI workflow#45

Open
mahmoodhamdi wants to merge 1 commit intoexpressjs:masterfrom
mahmoodhamdi:ci/github-actions
Open

ci: add GitHub Actions CI workflow#45
mahmoodhamdi wants to merge 1 commit intoexpressjs:masterfrom
mahmoodhamdi:ci/github-actions

Conversation

@mahmoodhamdi
Copy link
Copy Markdown

Summary

Adds a GitHub Actions CI workflow to replace the existing Travis CI configuration, as requested in #20.

What's included

Lint job:

  • Runs on latest LTS Node.js
  • Executes npm run lint

Test matrix:

  • Node.js versions: 0.10, 0.12, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22
  • OS: Ubuntu latest
  • Handles older Node.js versions by removing ESLint dev dependencies that require Node.js >= 4

Additional features:

  • Concurrency control to cancel in-progress runs on the same PR/branch
  • Path ignore for markdown files
  • Minimal permissions (read-only contents)

Notes

  • The .travis.yml is left in place for now — it can be removed in a follow-up once the GH Actions workflow is confirmed working
  • Follows the same CI patterns as other Express.js ecosystem packages

Closes #20

Add a GitHub Actions CI workflow to replace the existing Travis CI
configuration. The workflow runs:

- Lint job on latest LTS Node.js
- Test matrix across Node.js 0.10 through 22 on Ubuntu

This mirrors the CI patterns used across the Express.js ecosystem
(e.g., expressjs/express, jshttp/http-errors).

The Travis CI configuration (.travis.yml) is left in place for now
to avoid disrupting any existing integrations — it can be removed
in a follow-up once the GitHub Actions workflow is confirmed working.

Closes expressjs#20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Time to migrate to GH actions

1 participant