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.