upload frontend rice box

pull/508/head
hunterlong 2020-04-16 23:18:18 -07:00
parent fe2fd1877d
commit 85d0572972
2 changed files with 8 additions and 1 deletions

View File

@ -61,6 +61,12 @@ jobs:
- name: Build Frontend Statping
run: make clean compile
- name: Upload Compiled Frontend
uses: actions/upload-artifact@v1
with:
name: static-frontend
path: /home/runner/work/statping/statping/source/rice-box.go
- name: Install Statping
run: |
make build

View File

@ -191,13 +191,14 @@ func TestHttpRequest(t *testing.T) {
}
func TestConfigLoad(t *testing.T) {
Params.Set("DB_CONN", "sqlite")
InitCLI()
setDefaults()
s := Params.GetString
b := Params.GetBool
Params.Set("DB_CONN", "sqlite")
assert.Equal(t, "sqlite", s("DB_CONN"))
assert.Equal(t, Directory, s("STATPING_DIR"))
assert.True(t, b("SAMPLE_DATA"))