Skip to content

feat: migrate to taskfile - #12

Merged
dasvh merged 1 commit into
mainfrom
feature/use-task-over-make
Sep 15, 2025
Merged

feat: migrate to taskfile#12
dasvh merged 1 commit into
mainfrom
feature/use-task-over-make

Conversation

@dasvh

@dasvh dasvh commented Sep 15, 2025

Copy link
Copy Markdown
Owner

No description provided.

@dasvh
dasvh requested a review from Copilot September 15, 2025 07:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates the project's build system from Make to Taskfile (https://taskfile.dev), a modern task runner. The migration includes refactoring test setup code and updating CI workflows.

  • Replaced Makefile with Taskfile.yml for task management
  • Extracted common test environment setup into a reusable helper module
  • Updated GitHub Actions workflow to use the new task runner

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
Taskfile.yml New task definition file replacing Makefile functionality
Makefile Removed old Make-based build configuration
tests/env_helper.lua New helper module providing reusable test environment setup
tests/taskfile/core_spec.lua Refactored to use new test helper instead of duplicated setup
tests/taskfile/ui_spec.lua Refactored to use new test helper instead of duplicated setup
.github/workflows/lint-test.yml Updated to use task test instead of make test

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread tests/taskfile/ui_spec.lua Outdated
end

local tasks, temp_dir, taskfile_path, original_dir
local env = helpers.with_taskfile()

Copilot AI Sep 15, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The env variable is declared but never used in this test file. Consider removing it or using it to access environment properties if needed.

Suggested change
local env = helpers.with_taskfile()
helpers.with_taskfile()

Copilot uses AI. Check for mistakes.
Comment thread tests/taskfile/core_spec.lua Outdated
local helpers = require("tests.env_helper")

describe("without taskfile", function()
local env = helpers.with_empty_dir()

Copilot AI Sep 15, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The env variable is declared but never used in the 'without taskfile' test block. Consider removing it since the test doesn't need to access environment properties.

Suggested change
local env = helpers.with_empty_dir()
helpers.with_empty_dir()

Copilot uses AI. Check for mistakes.
Comment thread tests/taskfile/core_spec.lua Outdated
taskfile_path:rm()
vim.fn.delete(temp_dir, "rf")
end)
local env = helpers.with_taskfile()

Copilot AI Sep 15, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The env variable is declared but never used in the 'with taskfile' test block. Consider removing it or using it to access environment properties if needed.

Suggested change
local env = helpers.with_taskfile()
helpers.with_taskfile()

Copilot uses AI. Check for mistakes.
@dasvh
dasvh force-pushed the feature/use-task-over-make branch from 99e15e5 to 3d56576 Compare September 15, 2025 08:10
@dasvh
dasvh merged commit b0bace7 into main Sep 15, 2025
6 checks passed
@dasvh
dasvh deleted the feature/use-task-over-make branch September 15, 2025 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants