Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 254 - allow filtering projects by client for time entries #255

Merged
merged 5 commits into from
Feb 9, 2024
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
6 changes: 3 additions & 3 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: 1.17
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: checkout
uses: actions/checkout@v4
- name: go-setup
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.17
- name: install snapcraft
Expand All @@ -23,7 +23,7 @@ jobs:
mkdir -p $HOME/.cache/snapcraft/download
mkdir -p $HOME/.cache/snapcraft/stage-packages
- name: goreleaser-setup
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-unit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: 1.17

Expand All @@ -25,7 +25,7 @@ jobs:
./...

- name: Upload coverage report
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt
Expand Down
8 changes: 8 additions & 0 deletions .mockery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
with-expecter: true
dir: "internal/mocks"
packages:
github.com/lucassabreu/clockify-cli/internal/mocks:
interfaces:
Client:
Config:
Factory:
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- new flag `--client` to filter projects by client when managing time entries

### Changed

- `mockey` update and its configuration has changed
- github actions steps updated to node20

## [v0.46.0] - 2023-12-06

### Added
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ go-install: deps-install ## install dev version
go install $(MAIN_PKG)

go-generate: deps-install ## recreates generate files
go install github.com/vektra/mockery/v2@v2.15.0
go generate ./...
go install github.com/vektra/mockery/v2@v2.40.3
mockery

test-install: deps-install go-generate
go install gotest.tools/gotestsum@latest
Expand Down
3 changes: 0 additions & 3 deletions internal/mocks/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@ import (
"github.com/lucassabreu/clockify-cli/pkg/cmdutil"
)

//go:generate mockery --name=Factory --inpackage --with-expecter
type Factory interface {
cmdutil.Factory
}

//go:generate mockery --name=Config --inpackage --with-expecter
type Config interface {
cmdutil.Config
}

//go:generate mockery --name=Client --inpackage --with-expecter
type Client interface {
api.Client
}
Loading