1 Commits

Author SHA1 Message Date
d4a0203bd8 ci: setup just
Some checks failed
Gitbump CI / test (push) Successful in 9s
Gitbump CI / notify-failure (push) Has been skipped
Gitbump CI / build (push) Failing after 6s
2026-02-12 13:17:19 +01:00

View File

@@ -17,15 +17,19 @@ jobs:
with: with:
go-version: '1.26' go-version: '1.26'
- name: Install just
run: |
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash
- name: Test & Build - name: Test & Build
run: | run: |
just vet test /root/bin/just vet test
just build-linux-amd64 /root/bin/just build-linux-amd64
/bin/gitbump_linux_amd64 --version ./bin/gitbump_linux_amd64 --version
build: build:
runs-on: [ubuntu-latest, amd64] runs-on: [ubuntu-latest, amd64]
needs: test-build needs: test
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
permissions: permissions:
contents: write contents: write
@@ -44,17 +48,16 @@ jobs:
run: go run main.go run: go run main.go
notify-failure: notify-failure:
runs-on: go-executor runs-on: [ubuntu-latest, amd64]
needs: [test, build] needs: [test, build]
if: always() && contains(needs.*.result, 'failure') if: always() && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped'))
steps: steps:
- name: ntfy-failed-notifications - name: ntfy-failed-notifications
uses: niniyas/ntfy-action@master uses: niniyas/ntfy-action@master
with: with:
url: 'https://ntfy.zlymeda.dynu.net' url: ${{ secrets.NTFY_URL }}
topic: ${{ secrets.NTFY_TOPIC || 'errors' }} topic: ${{ secrets.NTFY_TOPIC }}
priority: 5 priority: 5
tags: flying_saucer,warning,🚨,🛠️,action,failed tags: flying_saucer,warning,🚨,🛠️,action,failed
details: Workflow has failed! details: Workflow has failed!
actions: 'default' actions: 'default'