github.com/kachick/nixpkgs-url@v0.3.2-0.20230806085406-bafeb8c13c92/Taskfile.yml (about)

     1  # https://taskfile.dev
     2  
     3  version: '3'
     4  
     5  tasks:
     6    default:
     7      deps:
     8        - task: lint
     9        - task: test
    10        - task: build
    11    install:
    12      cmds:
    13        - go install -ldflags "-X main.commit=$(git rev-parse HEAD) -X main.date=$(date --iso-8601)"
    14    build:preview:
    15      cmds:
    16        - goreleaser build --snapshot --single-target --clean --output dist/nixpkgs-url
    17    build:
    18      cmds:
    19        - go build -o ./dist/nixpkgs-url ./cmd/nixpkgs-url
    20    test:
    21      cmds:
    22        - go test ./...
    23    fmt:
    24      cmds:
    25        - typos . .github .vscode --write-changes
    26        - dprint fmt
    27        - go fmt ./...
    28        - nixpkgs-fmt ./*.nix
    29    lint:
    30      # go fmt does not have option for no effect - https://github.com/golang/go/issues/41189
    31      cmds:
    32        - dprint check
    33        - go vet ./...
    34        - goreleaser check
    35        - typos . .github .vscode
    36        - nixpkgs-fmt --check ./*.nix
    37        - staticcheck
    38    deps:
    39      cmds:
    40        - nix --version
    41        - task --version
    42        - go version
    43        - dprint --version
    44        - goreleaser --version
    45        - typos --version
    46        - staticcheck --version