Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Build"

on:
pull_request:

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Run Stoat Action
uses: stoat-dev/stoat-action@v0
if: always()
5 changes: 5 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ jobs:

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

- name: Run Stoat Action
uses: stoat-dev/stoat-action@v0
if: always()

1 change: 1 addition & 0 deletions .stoat/comment.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[![preview docker compose](https://shields.io/badge/stoat-docker%20compose-green?&style=flat)](https://stoat-git-jrhizor-kube-demo-stoat-dev.vercel.app/app/diffs)
7 changes: 7 additions & 0 deletions .stoat/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
version: 1
enabled: true
comment_template_file: ".stoat/comment.hbs"
plugins:
job_runtime:
enabled: false
3 changes: 2 additions & 1 deletion nginx-golang-postgres/backend/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ func prepare() error {
return err
}

for i := 0; i < 5; i++ {
for i := 0; i < 10; i++ {
log.Print(fmt.Sprintf("Inserting post #%d", i))
if _, err := db.Exec("INSERT INTO blog (title) VALUES ($1);", fmt.Sprintf("Blog post #%d", i)); err != nil {
return err
}
Expand Down