Skip to content

Commit 469d66c

Browse files
committedAug 11, 2020
Run prettier, to pass format-check
1 parent f4de3ae commit 469d66c

File tree

3 files changed

+32
-37
lines changed

3 files changed

+32
-37
lines changed
 

‎__tests__/matchers.test.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
describe('setup-android', () => {
2-
it('has sanity', async () => {
3-
expect(true)
4-
})
5-
})
1+
describe('setup-android', () => {
2+
it('has sanity', async () => {
3+
expect(true)
4+
})
5+
})

‎src/install.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,7 @@ export async function install(): Promise<void> {
2525
fs.mkdirSync(ANDROID_REPOSITORIES_DIR, {recursive: true})
2626
fs.closeSync(fs.openSync(ANDROID_REPOSITORIES_CFG, 'w'))
2727

28-
const acceptBuffer = Buffer.from(
29-
Array(10)
30-
.fill('y')
31-
.join('\n'),
32-
'utf8'
33-
)
28+
const acceptBuffer = Buffer.from(Array(10).fill('y').join('\n'), 'utf8')
3429
let sdkManager = ''
3530

3631
if (process.platform === 'linux') {

‎src/main.ts

+26-26
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
import * as core from '@actions/core'
2-
import * as path from 'path'
3-
import {ANDROID_SDK_ROOT, ANNOTATION_MATCHERS} from './constants'
4-
import {preGradleCache, preAndroidCache, preGradleWrapper} from './cache'
5-
import {install} from './install'
6-
7-
async function run(): Promise<void> {
8-
// process all caching but wait for them to all complete
9-
await Promise.all([preGradleWrapper(), preGradleCache(), preAndroidCache()])
10-
11-
await install()
12-
13-
core.exportVariable('ANDROID_HOME', ANDROID_SDK_ROOT)
14-
core.exportVariable('ANDROID_SDK_ROOT', ANDROID_SDK_ROOT)
15-
16-
core.addPath(path.join(ANDROID_SDK_ROOT, 'tools', 'bin'))
17-
core.addPath(path.join(ANDROID_SDK_ROOT, 'platform-tools'))
18-
19-
core.debug('add matchers')
20-
const matchersPath = path.join(__dirname, '..', '..', '.github')
21-
for (const matcher of ANNOTATION_MATCHERS) {
22-
console.log(`##[add-matcher]${path.join(matchersPath, matcher)}`)
23-
}
24-
}
25-
26-
run()
1+
import * as core from '@actions/core'
2+
import * as path from 'path'
3+
import {ANDROID_SDK_ROOT, ANNOTATION_MATCHERS} from './constants'
4+
import {preGradleCache, preAndroidCache, preGradleWrapper} from './cache'
5+
import {install} from './install'
6+
7+
async function run(): Promise<void> {
8+
// process all caching but wait for them to all complete
9+
await Promise.all([preGradleWrapper(), preGradleCache(), preAndroidCache()])
10+
11+
await install()
12+
13+
core.exportVariable('ANDROID_HOME', ANDROID_SDK_ROOT)
14+
core.exportVariable('ANDROID_SDK_ROOT', ANDROID_SDK_ROOT)
15+
16+
core.addPath(path.join(ANDROID_SDK_ROOT, 'tools', 'bin'))
17+
core.addPath(path.join(ANDROID_SDK_ROOT, 'platform-tools'))
18+
19+
core.debug('add matchers')
20+
const matchersPath = path.join(__dirname, '..', '..', '.github')
21+
for (const matcher of ANNOTATION_MATCHERS) {
22+
console.log(`##[add-matcher]${path.join(matchersPath, matcher)}`)
23+
}
24+
}
25+
26+
run()

0 commit comments

Comments
 (0)
Please sign in to comment.