fixing ci

pull/13/head
Marcusk19 2 years ago
parent 843385b004
commit 4ffe7e0344

@ -15,4 +15,4 @@ jobs:
- name: Install dependencies
run: go get .
- name: Test with Go CLI
run: TESTING=true go test -v ./test
run: make unit-test

@ -53,7 +53,7 @@ func runLinkCommand(cmd *cobra.Command, args []string) {
if(DryRun) {
log.Printf("Will link %s -> %s\n", configPath, dotPath)
} else {
if(testing == "true") {
if(testing == true) {
fmt.Fprintf(cmd.OutOrStdout(), "%s,%s", configPath, dotPath)
} else {
err = afero.OsFs.SymlinkIfPossible(afero.OsFs{}, dotPath, configPath)

@ -67,7 +67,6 @@ func init() {
viper.SetConfigName("config")
viper.SetConfigType("yaml")
viper.AddConfigPath("./tmp/dotfiles/bender")
fmt.Printf("dotfile path is %s\n", DotfilePath)
viper.AddConfigPath(filepath.Join(DotfilePath, "bender"))
err := viper.ReadInConfig()

@ -42,7 +42,9 @@ func setUpTesting() {
fs.Create(filepath.Join(homedir, ".dotfiles/bender/config"))
fs.MkdirAll(filepath.Join(homedir, ".dotfiles/someconfig/"), 0755)
viper.Set("dotfile-path", filepath.Join(homedir, ".dotfiles"))
viper.Set("someconfig", filepath.Join(homedir, ".config/someconfig/"))
viper.Set("testing", true)
}

Loading…
Cancel
Save