Alfi Maulana
8f79315420
feat: add function for parsing arguments with quotes ( #532 )
...
* feat: add `parse` function
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
* chore: remoev unused shell-quote from dependencies
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
* test: update `context.test.ts` test
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
---------
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
2024-11-26 18:43:30 +08:00
Alfi Maulana
a93af4bd1e
feat: log executed command ( #524 )
...
Build / Build Package (push) Failing after 1s
Check / Check Package (push) Failing after 1s
Test / Test Package (push) Failing after 1s
Test / Test Action (ubuntu-22.04) (push) Failing after 30s
Test / Test Action With Specified Directories (push) Failing after 35s
Test / Test Action Without Run Build (push) Failing after 36s
Test / Test Action With Additional Options (push) Failing after 3s
Test / Test Action With Custom Generator (push) Failing after 2s
Test / Test Action (macos-14) (push) Has been cancelled
Test / Test Action (windows-2022) (push) Has been cancelled
* feat: log executed command
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
* feat: log command based on spawned process arguments
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
---------
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
2024-11-24 23:34:31 +08:00
Alfi Maulana
478382dd46
feat: use asynchronous version of the exec file function ( #522 )
...
* feat: add `exec` function
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
* feat: use `exec` function in `configureProject` and `buildProject` functions
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
---------
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
2024-11-21 22:16:53 +07:00
Alfi Maulana
6f8b21d703
feat: parse multi values inputs with quotation ( #520 )
...
* feat: parse quotation in `options` input
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
* feat: parse quotation in `args` input
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
* feat: parse quotation in `build-args` input
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
---------
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
2024-11-21 21:16:54 +07:00
dependabot[bot]
5fc48bdef4
chore: bump gha-utils from 0.3.0 to 0.4.0 ( #457 )
...
Bumps [gha-utils](https://github.com/threeal/gha-utils ) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/threeal/gha-utils/releases )
- [Commits](https://github.com/threeal/gha-utils/compare/v0.3.0...v0.4.0 )
---
updated-dependencies:
- dependency-name: gha-utils
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-25 18:04:20 +07:00
dependabot[bot]
d62c3d86bd
chore: bump gha-utils from 0.2.0 to 0.3.0 ( #446 )
...
Bumps [gha-utils](https://github.com/threeal/gha-utils ) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/threeal/gha-utils/releases )
- [Commits](https://github.com/threeal/gha-utils/compare/v0.2.0...v0.3.0 )
---
updated-dependencies:
- dependency-name: gha-utils
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alfi Maulana <alfi.maulana.f@gmail.com>
2024-09-19 23:59:36 +08:00
dependabot[bot]
e3dae2824f
chore: bump gha-utils from 0.1.0 to 0.2.0 ( #414 )
...
Bumps [gha-utils](https://github.com/threeal/gha-utils ) from 0.1.0 to 0.2.0.
- [Release notes](https://github.com/threeal/gha-utils/releases )
- [Commits](https://github.com/threeal/gha-utils/compare/v0.1.0...v0.2.0 )
---
updated-dependencies:
- dependency-name: gha-utils
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alfi Maulana <alfi.maulana.f@gmail.com>
2024-08-17 22:12:49 +07:00
Alfi Maulana
4c4646891f
refactor: rename index.ts
to action.ts
( #408 )
2024-08-08 17:00:08 +08:00
Alfi Maulana
571e81560b
feat: utilize GitHub Actions Utilities package ( #406 )
...
* feat: utilize GitHub Actions Utilities package
* test: modify get action context test by mocking `getInput` function
2024-08-08 16:29:56 +08:00
Alfi Maulana
d1c539d005
refactor: refactor inputs to context ( #400 )
...
* refactor: rename `inputs` to `context`
* refactor: merge compiler and flags inputs to options input
* refactor: separate configure and build context
2024-08-07 22:20:14 +08:00
Alfi Maulana
9708492b8e
build: utilize Rollup to bundle action file ( #404 )
...
* build: utilize Rollup to bundle file
* build: bundle file with `.mjs` extension
2024-08-07 21:17:01 +08: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
dependabot[bot]
eb164f27d7
chore: bump undici from 5.28.3 to 5.28.4 ( #341 )
...
Bumps [undici](https://github.com/nodejs/undici ) from 5.28.3 to 5.28.4.
- [Release notes](https://github.com/nodejs/undici/releases )
- [Commits](https://github.com/nodejs/undici/compare/v5.28.3...v5.28.4 )
---
updated-dependencies:
- dependency-name: undici
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alfi Maulana <alfi.maulana.f@gmail.com>
2024-06-23 21:56:30 +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
d83693c521
feat: remove redundant specification of CMake source directory ( #273 )
...
* feat: remove setting the default of `source-dir` to `.`
* feat: append source dir to configure Cmake args only if specified
2024-03-25 14:03:03 +08:00
Alfi Maulana
21ddda7def
fix: fix default build dir not relative to source dir ( #269 )
...
* test: fix get action inputs test when source dir specified
* fix: default build dir should relative to source dir
* ci: fix test directory location
2024-03-25 12:25:14 +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
Alfi Maulana
808bf88986
build: remove config for disabling Yarn global cache ( #215 )
2024-03-02 20:35:08 +07:00
Alfi Maulana
03824cefd2
test: simplify ESLint configuration ( #196 )
...
* test(eslint): simplify TypeScript configuration
* test(eslint): remove `eslint-config-prettier`
* test(eslint): remove `eslint-plugin-tsdoc`
* test(eslint): simplify glob pattern for TypeScript files
* chore: bump @typescript-eslint/eslint-plugin from 6.21.0 to 7.0.1 (#193 )
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 6.21.0 to 7.0.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.0.1/packages/eslint-plugin )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-16 13:32:43 +07:00
Alfi Maulana
dd9fe54799
feat: catch error when calling the main
function ( #138 )
2023-12-14 19:37:47 +08:00
Alfi Maulana
65845a480e
build: adjust source files structures ( #136 )
...
* build(typescript): disable from generating source map
* build(typescript): disable from generating declaration file
* build(typescript): modify source files to be compiled to the same dir
* build(typescript): modify distribution files to be generated to `dist` directory
* refactor: rename main entrypoint from `main` to `index`
* chore(git): specify attribute for `dist` directory instead of just `dist/index.mjs`
2023-12-14 19:20:50 +08:00