-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from tiktok/feat-build-test-real-repo
feat: build test for a real repo
- Loading branch information
Showing
37 changed files
with
1,003 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,9 +34,12 @@ jobs: | |
with: | ||
fetch-depth: 2 | ||
- name: Configure Git | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }} | ||
run: | | ||
git config --local user.name tiktokbot | ||
git config --local user.email [email protected] | ||
git config --global credential.helper '!f() { echo "protocol=https\nhost=github.com" ; echo "username=oauth_token" ; echo "password=${GITHUB_TOKEN}" ; }; f' | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
import { Sparo, type ILaunchOptions } from 'sparo-lib'; | ||
import { SparoPackage } from './SparoPackage'; | ||
|
||
process.exitCode = 1; | ||
|
||
const launchOptions: ILaunchOptions = { | ||
callerPackageJson: SparoPackage._sparoPackageJson | ||
}; | ||
|
||
Sparo.launchSparoCIAsync(launchOptions) | ||
.then(() => { | ||
process.exitCode = 0; | ||
}) | ||
.catch(console.error); | ||
Sparo.launchSparoCIAsync(launchOptions).catch(console.error); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
import { Sparo, type ILaunchOptions } from 'sparo-lib'; | ||
import { SparoPackage } from './SparoPackage'; | ||
|
||
process.exitCode = 1; | ||
|
||
const launchOptions: ILaunchOptions = { | ||
callerPackageJson: SparoPackage._sparoPackageJson | ||
}; | ||
|
||
Sparo.launchSparoAsync(launchOptions) | ||
.then(() => { | ||
process.exitCode = 0; | ||
}) | ||
.catch(console.error); | ||
Sparo.launchSparoAsync(launchOptions).catch(console.error); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
build-tests/sparo-output-test/etc/top-level-nonexistent-command.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Running "sparo nonexistent-command": | ||
|
||
[1mSparo accelerator for Git __VERSION__ -[22m[36m https://tiktok.github.io/sparo/[39m | ||
[bold]Sparo accelerator for Git __VERSION__ -[normal][cyan] https://tiktok.github.io/sparo/[default] | ||
Node.js version is __VERSION__ (LTS) | ||
Git version is __VERSION__ | ||
|
||
|
||
[90m--[[39m [1mgit nonexistent-command[22m [90m]--------------------------------------------------[39m | ||
[90m-------------------------------------------------------------------------------[39m | ||
[gray]--[[default] [bold]git nonexistent-command[normal] [gray]]--------------------------------------------------[default] | ||
[gray]-------------------------------------------------------------------------------[default] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.