From df24f41bb3d801322a8c63cd1c4c2c553e5b9985 Mon Sep 17 00:00:00 2001 From: "Seraphim R. Pardee" Date: Fri, 20 Sep 2024 00:33:32 -0400 Subject: [PATCH] Divide workflows and give them order, add badges. --- .gitea/workflows/build.yaml | 21 +++++++++++++++++++ .../{test-n-build.yaml => test.yaml} | 19 +++-------------- README.md | 1 + 3 files changed, 25 insertions(+), 16 deletions(-) create mode 100644 .gitea/workflows/build.yaml rename .gitea/workflows/{test-n-build.yaml => test.yaml} (52%) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..4974186 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,21 @@ +name: build +run-name: ${{ gitea.actor }} is building. +on: + workflow_run: + workflows: [test] + types: + - completed + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout code + uses: actions/checkout@v4 + - name: setup go 1.23.1 and fetch deps + uses: actions/setup-go@v5 + with: + go-version: '1.23.1' + cache-dependency-path: go.sum + - name: do the actual build thing + run: go build -v ./... diff --git a/.gitea/workflows/test-n-build.yaml b/.gitea/workflows/test.yaml similarity index 52% rename from .gitea/workflows/test-n-build.yaml rename to .gitea/workflows/test.yaml index 7ebdbf8..67fefbc 100644 --- a/.gitea/workflows/test-n-build.yaml +++ b/.gitea/workflows/test.yaml @@ -1,5 +1,5 @@ -name: Test \'N Build -run-name: ${{ gitea.actor }} is testing... \'n building. +name: test +run-name: ${{ gitea.actor }} is testing. on: [push] jobs: @@ -19,17 +19,4 @@ jobs: uses: christopherhx/gitea-upload-artifact@v4 with: name: go-results-1.23.1 - path: testresults-1.23.1.json - - build: - runs-on: ubuntu-latest - steps: - - name: checkout code - uses: actions/checkout@v4 - - name: setup go 1.23.1 and fetch deps - uses: actions/setup-go@v5 - with: - go-version: '1.23.1' - cache-dependency-path: go.sum - - name: do the actual build thing - run: go build -v ./... + path: testresults-1.23.1.json \ No newline at end of file diff --git a/README.md b/README.md index 25041d6..2fddcb6 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # bingo A lightweight {paste,file}bin alternative written in Golang. +![test status](https://git.hl.srp.life/srp/bingo/actions/workflows/test.yaml/badge.svg) ![build status](https://git.hl.srp.life/srp/bingo/actions/workflows/build.yaml/badge.svg) Overall goal is to create a service that works well as a single-user self-hosted instance, which can trivially upload files/text.