Taskfile.yaml
This file
Path
Taskfile.yaml
38 lines · 1.1 KiB · YAML
Last changed by
chore(task): add release and fetch-tags tasksChristian Rochabefore adoption670963e
History of this fileTake it
ci(lint): fix all lint issues on `main` (#1342)Andrey Neringbefore adoptionb224818
lines 1–2why, one step back1# https://taskfile.dev2fix: prevent data race with cursedRenderer.onMouse (#1691)Liam Stanleybefore adoptionc60f0c5
line 3why, one step back3version: "3"ci(lint): fix all lint issues on `main` (#1342)Andrey Neringbefore adoptionb224818
lines 4–6why, one step back45tasks:6 lint:chore(taskfile): remove `lint:soft` which is not a thing anymoreAndrey Neringbefore adoption7791ef6
line 7why, one step back7 desc: Run lintci(lint): fix all lint issues on `main` (#1342)Andrey Neringbefore adoptionb224818
lines 8–13why, one step back8 cmds:9 - golangci-lint run1011 test:12 desc: Run tests13 cmds:fix: prevent data race with cursedRenderer.onMouse (#1691)Liam Stanleybefore adoptionc60f0c5
line 14why, one step back14 - go test -race -count 4 -cpu 1,4 ./... {{.CLI_ARGS}}chore(task): add release and fetch-tags tasksChristian Rochabefore adoption670963e
lines 15–38why, one step back1516 release:17 desc: Create and push a new tag following semver18 vars:19 NEXT:20 sh: svu next --always || go run github.com/caarlos0/svu/v3@latest next --always21 prompt: "This will release {{.NEXT}}. Continue?"22 preconditions:23 - sh: '[ $(git symbolic-ref --short HEAD) = "main" ]'24 msg: Not on main branch25 - sh: "[ $(git status --porcelain=2 | wc -l) = 0 ]"26 msg: "Git is dirty"27 - sh: 'gh run list --workflow build.yml --commit $(git rev-parse HEAD) --status success --json conclusion -q ".[0].conclusion" | grep -q success'28 msg: "Test build for this commit failed or not present"29 cmds:30 - task: fetch-tags31 - git commit --allow-empty -m "{{.NEXT}}"32 - git tag --annotate --sign -m "{{.NEXT}}" {{.NEXT}} {{.CLI_ARGS}}33 - echo "Pushing {{.NEXT}}..."34 - git push origin main --follow-tags3536 fetch-tags:37 cmds:38 - git fetch --tags