Skip to content

Commit 92584e9

Browse files
Copilotfelickz
andauthored
Fix ESM dependency compatibility
Co-authored-by: felickz <1760475+felickz@users.noreply.github.com>
1 parent 6892945 commit 92584e9

9 files changed

Lines changed: 32161 additions & 49546 deletions

File tree

__tests__/mocks/actions-core.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
debug: () => {},
3+
getInput: name => process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '',
4+
info: () => {},
5+
setFailed: () => {}
6+
}

__tests__/mocks/actions-github.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
context: {
3+
apiUrl: 'https://api.github.com',
4+
repo: {
5+
owner: '',
6+
repo: ''
7+
}
8+
}
9+
}

__tests__/mocks/octokit-action.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class Octokit {}
2+
3+
module.exports = {Octokit}

0 commit comments

Comments
 (0)