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 - 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

View File

@ -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"))