Skip to content

Commit

Permalink
chore: Add test suit on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
angelmadames committed Feb 14, 2024
1 parent a40fdfb commit 13ea346
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ jobs:
bun run format:ci
bun run lint:ci
bun run check:ci
- name: 🧪 Run tests
run: bun run test
4 changes: 2 additions & 2 deletions src/utils/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ export default class Git {
);
}

remoteRepoExists(repo: string = this.repoUrl) {
remoteRepoExists(repo: string = this.repoUrl, verbose = false) {
const proc = Bun.spawnSync(['git', 'ls-remote', repo], {
stdin: 'inherit',
});

if (proc.exitCode === 0) {
log.info(`Remote repo: ${repo} is valid.`);
if (verbose) log.info(`Remote repo: ${repo} is valid.`);
} else {
throw new Error(`Remote repo: ${repo} is not valid or does not exist.`);
}
Expand Down

0 comments on commit 13ea346

Please sign in to comment.