From 1f1a5eb9e50796b15c3297803e4d14f80e97dafa Mon Sep 17 00:00:00 2001 From: Anton Malinskiy Date: Tue, 6 Feb 2024 21:35:31 +1000 Subject: [PATCH] fix(format): run prettier --- src/run.ts | 4 +++- src/semver.test.ts | 2 +- src/semver.ts | 5 ++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/run.ts b/src/run.ts index 576d124..b9a1ca9 100644 --- a/src/run.ts +++ b/src/run.ts @@ -15,7 +15,9 @@ async function main() { await setupArtifact(artifact, skipCache); } else { - core.setFailed(`Unsupported cli version ${version}. This action supports version ${1}`); + core.setFailed( + `Unsupported cli version ${version}. This action supports version ${1}`, + ); } } diff --git a/src/semver.test.ts b/src/semver.test.ts index 4d3fc7a..f64fac4 100644 --- a/src/semver.test.ts +++ b/src/semver.test.ts @@ -1,4 +1,4 @@ -import { validateMajorVersion } from "./semver"; +import { validateMajorVersion } from './semver'; test('versionValidation', () => { ['1', '1.0.0', '1.2.3'].forEach((v) => { diff --git a/src/semver.ts b/src/semver.ts index 3364f2a..fe0fa98 100644 --- a/src/semver.ts +++ b/src/semver.ts @@ -1,4 +1,7 @@ -export function validateMajorVersion(versionString: string, supported: string): boolean { +export function validateMajorVersion( + versionString: string, + supported: string, +): boolean { const majorVersion = versionString.split('.')[0]; return majorVersion === supported; }