You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: support optional v prefix with directory separator config
- Removed deprecated action-metadata types and utility functions.
- Introduced new metadata structure for action inputs in `metadata.ts`.
- Updated configuration handling to support dynamic input mapping.
- Enhanced tag processing to accommodate various directory separators.
- Added tests for metadata input handling and error scenarios.
- Improved regex patterns for module tag validation.
- Updated action.yml to include new input parameters for tag directory separator and version prefix usage.
- Refactored TerraformModule class to utilize new configuration settings for versioning.
Copy file name to clipboardExpand all lines: __tests__/context.test.ts
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ describe('context', () => {
48
48
it(`should throw an error if ${envVar} is not set`,()=>{
49
49
// Set the specific environment variable to undefined, but keep others set
50
50
vi.stubEnv(envVar,undefined);
51
-
51
+
52
52
expect(()=>getContext()).toThrow(
53
53
newError(
54
54
`The ${envVar} environment variable is missing or invalid. This variable should be automatically set by GitHub for each workflow run. If this variable is missing or not correctly set, it indicates a serious issue with the GitHub Actions environment, potentially affecting the execution of subsequent steps in the workflow. Please review the workflow setup or consult the documentation for proper configuration.`,
@@ -60,7 +60,6 @@ describe('context', () => {
60
60
61
61
describe('event validation',()=>{
62
62
it('should throw error when event is not pull_request',()=>{
63
-
64
63
vi.stubEnv('GITHUB_EVENT_NAME','push');
65
64
expect(()=>getContext()).toThrow('This workflow is not running in the context of a pull request');
66
65
});
@@ -196,7 +195,6 @@ describe('context', () => {
196
195
// Ensure GITHUB_API_URL is not set to test the default fallback
197
196
vi.stubEnv('GITHUB_API_URL',undefined);
198
197
199
-
200
198
constcontext=getContext();
201
199
202
200
// Check that the context was created with default API URL
0 commit comments