Update to modern times. - #106
Open
Jesse Houwing (jessehouwing) wants to merge 9 commits into
Open
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
actions/checkout@v6for both integration and unit tests, ensuring improved security and performance. [1] [2].github/dependabot.ymlconfiguration to enable automated dependency updates for GitHub Actions and npm packages, scheduled weekly.Testing Improvements and Refactoring:
__tests__/main.test.tsto 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:
azure-pipeline-parametersinput, documented in bothREADME.mdandaction.yml. [1] [2]Code Quality and Tooling:
eslint.config.mjsconfiguration usingtypescript-eslintfor improved TypeScript linting, with project-specific rules and ignores.Runtime Environment Update:
action.ymlruntime to use Node.js 24 (using: 'node24') for better performance and compatibility.