Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 5 additions & 13 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,14 @@ jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.16.x

- name: Check out code into the Go module directory
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Cache Go modules
uses: actions/cache@v1
- name: Set up Go
uses: actions/setup-go@v5
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-version-file: go.mod
cache-dependency-path: go.sum

- name: Test with coverage report
run: |
Expand Down
13 changes: 0 additions & 13 deletions .github/workflows/lint.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/pull-request-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Pull request checks
on:
pull_request:
types: [opened, synchronize]

jobs:
build:
name: Test
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: go.sum

- name: Lint
uses: golangci/golangci-lint-action@v6

- name: Test
run: |
go test -v -race ./...
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v1
uses: actions/setup-go@v5
with:
go-version: 1.16.x
go-version-file: go.mod
cache-dependency-path: go.sum

- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v1
Expand All @@ -29,10 +30,8 @@ jobs:
password: ${{ secrets.DOCKER_HUB_PASSWORD }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
uses: goreleaser/goreleaser-action@v6
with:
version: v0.149.0
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TASKCTL_TOKEN}}
GOPATH: /home/runner/go
27 changes: 0 additions & 27 deletions .github/workflows/test.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ bin/
# IDEs
.idea
.vscode

# Local
.envrc
12 changes: 12 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Options for analysis running.
run:
timeout: 10m
modules-download-mode: readonly

severity:
default-severity: error

linters-settings:
# Enable all analyzers.
# Default: false
enable-all: true
82 changes: 43 additions & 39 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
version: 2
dist: bin

builds:
- dir: cmd/taskctl
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- 386
- amd64
- arm
goarm:
- 6
- 7
ignore:
- goos: darwin
goarch: 386
gcflags:
- all=-trimpath={{.Env.GOPATH}}
- binary: bin/taskctl
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- "386"
- amd64
- arm
- arm64
goarm:
- "6"
- "7"
goarm64:
- v8.0
- v9.0
ignore:
- goos: darwin
goarch: "386"
gcflags:
- all=-trimpath={{.Env.GOPATH}}

archives:
- format: tar.gz
Expand All @@ -35,15 +40,15 @@ archives:
source:
enabled: true

changelog:
disable: true

release:
prerelease: auto

checksum:
name_template: checksums.txt

changelog:
skip: true

snapcrafts:
- name: taskctl
confinement: classic
Expand All @@ -54,37 +59,36 @@ snapcrafts:
Simple modern alternative to GNU Make. *taskctl* is concurrent task runner that allows you to design you routine tasks and development pipelines in nice and neat way in human-readable format (YAML, JSON or TOML).
Each pipeline composed of tasks or other pipelines and allows them to run in parallel or one-by-one.
Beside pipelines, each single task can be performed manually or triggered by built-in filesystem watcher.
apps:
taskctl:
completer: autocomplete/bash_completion.bash

brews:
- tap:
owner: taskctl
name: homebrew-taskctl
commit_author:
- commit_author:
name: Yevhen Terentiev
email: [email protected]
homepage: https://github.com/taskctl/taskctl
install: |
bin.install "taskctl"
extra_install: |
bash_completion.install "autocomplete/bash_completion.bash"
zsh_completion.install "autocomplete/zsh_completion.zsh"
repository:
owner: taskctl
name: homebrew-taskctl


dockers:
- image_templates:
- "docker.io/taskctl/taskctl:latest"
- "ghcr.io/taskctl/taskctl:latest"
- "docker.io/taskctl/taskctl:{{ .Tag }}"
- "ghcr.io/taskctl/taskctl:{{ .Tag }}"
skip_push: auto

scoop:
bucket:
owner: taskctl
name: scoop-taskctl
commit_author:
name: Yevhen Terentiev
email: [email protected]
homepage: https://github.com/taskctl/taskctl
scoops:
- repository:
owner: taskctl
name: scoop-taskctl
commit_author:
name: Yevhen Terentiev
email: [email protected]
homepage: https://github.com/taskctl/taskctl

nfpms:
-
Expand Down
Loading