diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..7ddabb495 --- /dev/null +++ b/.github/workflows/build.yml @@ -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() diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 95fed5971..efeb7cfec 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -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() + diff --git a/.stoat/comment.hbs b/.stoat/comment.hbs new file mode 100644 index 000000000..b25c75c02 --- /dev/null +++ b/.stoat/comment.hbs @@ -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) diff --git a/.stoat/config.yaml b/.stoat/config.yaml new file mode 100644 index 000000000..965e7cc9b --- /dev/null +++ b/.stoat/config.yaml @@ -0,0 +1,7 @@ +--- +version: 1 +enabled: true +comment_template_file: ".stoat/comment.hbs" +plugins: + job_runtime: + enabled: false diff --git a/nginx-golang-postgres/backend/main.go b/nginx-golang-postgres/backend/main.go index 7ed5f37c5..b01c6384d 100755 --- a/nginx-golang-postgres/backend/main.go +++ b/nginx-golang-postgres/backend/main.go @@ -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 }