Commit Graph

12 Commits

Author SHA1 Message Date
Alfi Maulana
ad83104d76
refactor: separate configure and build context 2024-08-07 21:14:24 +07:00
Alfi Maulana
98f46f3e06
refactor: rename inputs to context 2024-08-07 20:30:22 +07:00
Alfi Maulana
44a0a4c6c2
refactor: remove core actions toolkit dependency (#397)
* refactor: add a `getInput` function

* refactor: replace `core.getBooleanInput` with `getInput`

* refactor: replace `core.getMultilineInput` with `getInput`

* refactor: replace `core.setOutput` with dirrect append to `GITHUB_OUTPUT`

* refactor: replace `core.setFailed` with direct stdout write
2024-08-06 22:42:23 +07:00
Alfi Maulana
fe729787d8
build: enable TypeScript strict configuration (#395)
* feat: utilize catched-error-message to parse catched error

* test: fix typing in `inputs.test.ts`

* build: enable TypeScript strict configuration

* build: configure TypeScript to skip library check
2024-08-06 16:41:09 +08:00
Alfi Maulana
23aad7b33f
feat: use child process package to execute command (#391)
* feat: use `execFileSync` from `node:child_process` package

* feat: modify `configureProject` function to be sync

* feat: modify `buildProject` function to be sync

* feat: display command output to the parent output
2024-08-06 12:29:28 +08:00
Alfi Maulana
3ca3a29821
refactor: remove main function and move its content to top level (#298) 2024-04-15 21:22:35 +08:00
Alfi Maulana
0df49588a5
refactor: add CMake execution functions (#263)
* refactor: add `configureProject` function from lines in `main` function

* test: add test for `configureProject` function

* refactor: add `buildProject` function from lines in `main` function
2024-03-24 23:41:08 +08:00
Alfi Maulana
4427f0f36d
feat: remove support for auto-install Ninja (#258)
* feat: remove support for auto-installing Ninja

* ci: add step for setting up Ninja in `test-action-with-custom-tools` job

* docs: update readme related to auto-install Ninja support removal
2024-03-22 18:14:44 +08:00
Alfi Maulana
ebf367c0a0
feat: remove support for testing CMake projects (#256)
* feat: remove `run-test` and `test-args` action inputs

* docs: remove description for supporting testing
2024-03-22 17:06:56 +08:00
Alfi Maulana
30c1178974
feat: add function for getting action inputs (#225)
* feat: add `getInputs` function

* feat: specify default input value in `getInputs` function
2024-03-04 22:53:41 +08:00
Alfi Maulana
d37829ef6a
build: build distribution files directly from TypeScript files (#221)
* build: build dist directly from TypeScript sources

* build(ts): adjust options in `tsconfig.json`

* fix: import all instead of default in @actions modules
2024-03-04 21:16:05 +08:00
Alfi Maulana
e0f6aeea02
refactor: rename source files extension to .ts (#219) 2024-03-04 21:01:48 +08:00