Skip to content

Commit f62a18f

Browse files
authored
enable tests on main branch (#309)
* enable tests on main branch branch renamed and github actions had the wrong branch name * tests fails on mac due to binary filepaths
1 parent 8b30fb5 commit f62a18f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
on:
22
pull_request:
33
branches:
4-
- master
4+
- main
55

66
jobs:
77
unit_test:

internal/condition/condition_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package condition_test
22

33
import (
4+
"encoding/base64"
45
"math/rand"
56
"os"
67
"testing"
@@ -12,7 +13,7 @@ import (
1213
func testSetup(paramKey, paramValue string) (string, projectconfig.Module) {
1314
bytes := make([]byte, 15)
1415
_, _ = rand.Read(bytes)
15-
name := string(bytes[:])
16+
name := string(base64.StdEncoding.EncodeToString(bytes[:]))
1617

1718
_, _ = os.Create(name)
1819

0 commit comments

Comments
 (0)