Skip to content

Commit f92ff2e

Browse files
committed
Format
1 parent 66fb592 commit f92ff2e

4 files changed

Lines changed: 14 additions & 10 deletions

File tree

entrypoint.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22

33
import * as core from '@actions/core'
44
import { context } from '@actions/github'
5-
import {
6-
GITHUB_EVENT_NAME,
7-
COMPRESS_ONLY
8-
} from './src/constants.ts'
5+
import { GITHUB_EVENT_NAME, COMPRESS_ONLY } from './src/constants.ts'
96

107
import run from './src/index.ts'
118

@@ -18,7 +15,10 @@ const main = async () => {
1815
}
1916

2017
// Bail out if the pull_request event wasn't synchronize or opened
21-
if (context.payload.action !== 'synchronize' && context.payload.action !== 'opened') {
18+
if (
19+
context.payload.action !== 'synchronize' &&
20+
context.payload.action !== 'opened'
21+
) {
2222
core.error(
2323
`Check run has action ${context.payload.action}. Wants: synchronize or opened`
2424
)

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ export default [
2424
}
2525
},
2626
prettier
27-
]
27+
]

vitest.config.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ export default defineConfig({
44
test: {
55
environment: 'node',
66
setupFiles: ['./vitest.setup.ts'],
7-
include: ['__tests__/**/*_test.{js,ts}', '__tests__/**/*.{test,spec}.{js,ts}']
7+
include: [
8+
'__tests__/**/*_test.{js,ts}',
9+
'__tests__/**/*.{test,spec}.{js,ts}'
10+
]
811
}
9-
})
12+
})

vitest.setup.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { writeFileSync, mkdirSync } from 'fs'
22
import { dirname } from 'path'
33

4-
process.env.GITHUB_EVENT_PATH = '__tests__/fixtures/pull-request-synchronize-event.json'
4+
process.env.GITHUB_EVENT_PATH =
5+
'__tests__/fixtures/pull-request-synchronize-event.json'
56
process.env.GITHUB_REPOSITORY = 'calibreapp/image-actions-test-repo'
67
process.env.GITHUB_OUTPUT = '/tmp/github_output.txt'
78

@@ -11,4 +12,4 @@ try {
1112
writeFileSync(process.env.GITHUB_OUTPUT!, '')
1213
} catch (error) {
1314
// File might already exist, that's okay
14-
}
15+
}

0 commit comments

Comments
 (0)