Skip to content

Commit

Permalink
fix: test and rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisBrunner committed Aug 31, 2022
1 parent 92caed8 commit f1fba2f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ test('test runs (creation)', () => {
const entry = path.join(__dirname, '..', 'lib', 'main.js');
const options: cp.ExecSyncOptions = {
env: {
...process.env,
GITHUB_REPOSITORY: 'LB/ABC',
GITHUB_SHA: 'SHA',
INPUT_TOKEN: 'ABC',
Expand All @@ -45,6 +46,7 @@ test('test runs (update)', () => {
const entry = path.join(__dirname, '..', 'lib', 'main.js');
const options: cp.ExecSyncOptions = {
env: {
...process.env,
GITHUB_REPOSITORY: 'LB/ABC',
GITHUB_SHA: 'SHA',
INPUT_TOKEN: 'ABC',
Expand All @@ -68,6 +70,7 @@ test('test runs (creation on remote repository)', () => {
const entry = path.join(__dirname, '..', 'lib', 'main.js');
const options: cp.ExecSyncOptions = {
env: {
...process.env,
GITHUB_REPOSITORY: 'LB/ABC',
GITHUB_SHA: 'SHA',
INPUT_TOKEN: 'ABC',
Expand All @@ -93,6 +96,7 @@ test('test runs (update on remote repository)', () => {
const entry = path.join(__dirname, '..', 'lib', 'main.js');
const options: cp.ExecSyncOptions = {
env: {
...process.env,
GITHUB_REPOSITORY: 'LB/ABC',
GITHUB_SHA: 'SHA',
INPUT_TOKEN: 'ABC',
Expand All @@ -118,6 +122,7 @@ test('test rejects invalid repo', () => {
const entry = path.join(__dirname, '..', 'lib', 'main.js');
const options: cp.ExecSyncOptions = {
env: {
...process.env,
GITHUB_REPOSITORY: 'LB/ABC',
GITHUB_SHA: 'SHA',
INPUT_TOKEN: 'ABC',
Expand Down Expand Up @@ -150,6 +155,7 @@ test('test runs (creation + pull_request)', () => {
const entry = path.join(__dirname, '..', 'lib', 'main.js');
const options: cp.ExecSyncOptions = {
env: {
...process.env,
GITHUB_REPOSITORY: 'LB/ABC',
GITHUB_SHA: 'SHA',
GITHUB_EVENT_NAME: 'pull_request',
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@
"noImplicitAny": true,
"esModuleInterop": true
},
"exclude": ["node_modules", "**/*.test.ts"]
"exclude": [
"node_modules",
"**/*.test.ts"
]
}

0 comments on commit f1fba2f

Please sign in to comment.