Skip to content

Commit

Permalink
fix(format): run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Malinskiy committed Feb 6, 2024
1 parent 9eb3284 commit 1f1a5eb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/semver.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { validateMajorVersion } from "./semver";
import { validateMajorVersion } from './semver';

test('versionValidation', () => {
['1', '1.0.0', '1.2.3'].forEach((v) => {
Expand Down
5 changes: 4 additions & 1 deletion src/semver.ts
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 1f1a5eb

Please sign in to comment.