mirror of https://github.com/statping/statping
upload frontend rice box
parent
fe2fd1877d
commit
85d0572972
|
@ -61,6 +61,12 @@ jobs:
|
||||||
- name: Build Frontend Statping
|
- name: Build Frontend Statping
|
||||||
run: make clean compile
|
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
|
- name: Install Statping
|
||||||
run: |
|
run: |
|
||||||
make build
|
make build
|
||||||
|
|
|
@ -191,13 +191,14 @@ func TestHttpRequest(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestConfigLoad(t *testing.T) {
|
func TestConfigLoad(t *testing.T) {
|
||||||
Params.Set("DB_CONN", "sqlite")
|
|
||||||
InitCLI()
|
InitCLI()
|
||||||
setDefaults()
|
setDefaults()
|
||||||
|
|
||||||
s := Params.GetString
|
s := Params.GetString
|
||||||
b := Params.GetBool
|
b := Params.GetBool
|
||||||
|
|
||||||
|
Params.Set("DB_CONN", "sqlite")
|
||||||
|
|
||||||
assert.Equal(t, "sqlite", s("DB_CONN"))
|
assert.Equal(t, "sqlite", s("DB_CONN"))
|
||||||
assert.Equal(t, Directory, s("STATPING_DIR"))
|
assert.Equal(t, Directory, s("STATPING_DIR"))
|
||||||
assert.True(t, b("SAMPLE_DATA"))
|
assert.True(t, b("SAMPLE_DATA"))
|
||||||
|
|
Loading…
Reference in New Issue