Skip to content

Commit

Permalink
add via_docker job to ci workflow, add titles to forms in Resto UI
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Dec 22, 2021
1 parent 24ac6f4 commit 3ece8c1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,14 @@ jobs:

- name: Run `resto help`
run: resto help

via_docker:
needs: [ bfs, from_script, go ]

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Run in docker container
run: cat examples/job.json | docker run -it restohq/resto put https://reqres.in/api/users/878 -c json --body-stdin
7 changes: 7 additions & 0 deletions core/layout/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,13 @@ func Layout() {
responseView.SetBorder(true)
statusView.SetBorder(true)

// set titles
requestForm.SetTitle("Request Form").SetTitleAlign(tview.AlignCenter)
authForm.SetTitle("Authentication").SetTitleAlign(tview.AlignCenter)
panelForm.SetTitle("Panel").SetTitleAlign(tview.AlignCenter)
responseView.SetTitle("Response").SetTitleAlign(tview.AlignCenter)
statusView.SetTitle("Status").SetTitleAlign(tview.AlignCenter)

if err := app.
EnableMouse(true).
SetRoot(flex, true).
Expand Down
4 changes: 4 additions & 0 deletions examples/job.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "resto_user",
"job": "User of resto"
}

0 comments on commit 3ece8c1

Please sign in to comment.