mirror of https://github.com/statping/statping
upload frontend rice box
parent
fe2fd1877d
commit
85d0572972
|
@ -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
|
||||
|
|
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue