Skip to content

Commit c875560

Browse files
committed
fix default dir setup in GH actions
1 parent 72298db commit c875560

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/go-collab.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141
sudo cp /home/linuxbrew/.linuxbrew/Cellar/libgit2/1.1.0/lib/lib* /usr/lib
4242
export PATH="/home/linuxbrew/.linuxbrew/Cellar/libgit2/1.1.0/lib/:$PATH"
4343
git config --global user.name "${{ secrets.ACTION_USER_NAME }}" && git config --global user.email "${{ secrets.ACTION_USER_EMAIL }}"
44+
sudo mkdir -p /usr/local/gitconvex
45+
sudo chown $(whoami) /usr/local/gitconvex/
4446
go test -v ./...
4547
4648
gitconvex-build:

tests/code_file_view_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func TestCodeFileView(t *testing.T) {
2323
repo *git.Repository
2424
repoPath string
2525
fileName string
26-
}{repo: r, repoPath: r.Path(), fileName: "README.md"}},
26+
}{repo: r, repoPath: r.Workdir(), fileName: "README.md"}},
2727
}
2828
for _, tt := range tests {
2929
t.Run(tt.name, func(t *testing.T) {

utils/db_file_reader.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ type RepoData struct {
1919

2020
// DataStoreFileReader reads the database json file tracking the stored repos and returns the data as a struct
2121
func DataStoreFileReader() []RepoData {
22-
logger := global.Logger{}
23-
2422
envConfig := EnvConfigFileReader()
2523
dbFile := envConfig.DataBaseFile
2624
dbFileContent, err := ioutil.ReadFile(dbFile)

0 commit comments

Comments
 (0)