Skip to content

Update to modern times. - #106

Open
Jesse Houwing (jessehouwing) wants to merge 9 commits into
Azure:masterfrom
jessehouwing:master
Open

Update to modern times.#106
Jesse Houwing (jessehouwing) wants to merge 9 commits into
Azure:masterfrom
jessehouwing:master

Conversation

@jessehouwing

Copy link
Copy Markdown

This pull request introduces several improvements and updates across the codebase, focusing on modernizing dependencies, enhancing test coverage and maintainability, and adding new features for pipeline parameterization. The most significant changes include updating GitHub Actions versions, refactoring and expanding the test suite for better reliability, introducing support for pipeline template parameters, and adding a new ESLint configuration for TypeScript code quality.

Dependency and Workflow Modernization:

  • Updated GitHub Actions workflow files to use the latest actions/checkout@v6 for both integration and unit tests, ensuring improved security and performance. [1] [2]
  • Added a .github/dependabot.yml configuration to enable automated dependency updates for GitHub Actions and npm packages, scheduled weekly.

Testing Improvements and Refactoring:

  • Refactored __tests__/main.test.ts to use more robust mocking patterns, centralized setup/teardown, and improved test reliability; replaced deprecated or less accurate test assertions, and enhanced type safety in test cases. [1] [2] [3] [4] [5] [6] [7] [8]

Feature Enhancements:

  • Added support for passing pipeline template parameters via the new azure-pipeline-parameters input, documented in both README.md and action.yml. [1] [2]

Code Quality and Tooling:

  • Introduced a new eslint.config.mjs configuration using typescript-eslint for improved TypeScript linting, with project-specific rules and ignores.

Runtime Environment Update:

  • Updated the action.yml runtime to use Node.js 24 (using: 'node24') for better performance and compatibility.

Copilot AI and others added 9 commits June 8, 2026 11:54
…ript 5.x, Jest 30, ESLint 9 with TS support, remove Q dependency
- Updated typescript from ^5.8.3 to ^6.0.3
- Updated eslint from ^9.28.0 to ^10.4.1
- Updated @eslint/js from ^9.28.0 to ^10.0.1
- Updated @types/jest to ^30.0.0
- Updated typescript-eslint to ^8.60.1
- Added tsconfig.test.json for jest test compilation
- Added lib/ to tsconfig.json exclude (TypeScript 6 compatibility)
- Configured ts-jest to use tsconfig.test.json
- Replace BuildApi with PipelinesApi for YAML pipeline execution
- Use listPipelines + runPipeline instead of getDefinitions + queueBuild
- Add support for template parameters via azure-pipeline-parameters input
- Convert variables to Pipelines API format {value: string}
- Pass repository resources (branch and commit) to pipeline runs
- Add explicit pipeline existence validation by name
- Update README with new parameter documentation
- Update tests to mock Pipelines API
…nd-tools

Migrate from Build API to Pipelines API and update to TypeScript 6 / ESLint 10
Bumps [actions/checkout](https://github.com/actions/checkout) from 1 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v1...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…ions/checkout-6

Bump actions/checkout from 1 to 6
- @actions/core: ^1.11.1 → ^3.0.1
- @rollup/plugin-commonjs: ^28.0.3 → ^29.0.3
- azure-devops-node-api: ^14.1.0 → ^15.1.2
- Add jest.resolver.js for ESM-only @actions packages
- Update jest.config.js with transformIgnorePatterns and custom resolver
- Fix test mocking for @actions/core ESM compatibility
- Fix lint errors (var → var with eslint-disable comments)
Update dependencies to latest major versions and fix ESM compatibility
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.

2 participants