Commit Graph

10 Commits

Author SHA1 Message Date
Alfi Maulana
28146ffccf
ci: remove unit testing (#198)
* ci(test): remove `test-package` job

* test: remove testing using Jest

* test(eslint): remove `parserOptions` entry
2024-02-16 13:13:16 +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
Alfi Maulana
96089ee386
test: write test in JavaScript (#108)
* test: map imported module from the distribution files

* chore: remove @jest/globals, @types/jest, and ts-jest from dependencies

* test: modify test files to JavaScript

* test: remove `testMatch` option in Jest (redundant)

* build: remove `tsconfig.eslint.json`

* ci(test): set `--experimental-vm-modules` only on `Test Package` step instead
2023-12-11 20:38:06 +08:00
Alfi Maulana
dd1c44061d
feat: install Ninja if it was not available (#82)
* feat: install Ninja if generator is Ninja

* feat: only install ninja if it was not installed
2023-11-21 20:45:38 +07:00
Alfi Maulana
025d277e55
feat: pass more arguments during CMake configuration (#78)
* feat: parse and pass `generator` input

* feat: parse and pass `c-compiler` and `cxx-compiler` inputs

* feat: parse and pass `c-flags` and `cxx-flags` inputs

* feat: parse and pass `options` input

* feat: parse and pass `args` input
2023-11-20 21:52:38 +07:00
Alfi Maulana
1829bd6347
feat: run CTest from the JavaScript Action (#77)
* feat: run CTest if `run-test` is true

* feat: run CMake build if `run-test` set to true
2023-11-20 21:19:04 +07:00
Alfi Maulana
421f12e1db
feat: run CMake build from the JavaScript Action (#75)
* feat: add CMake build step

* feat: only run CMake build step if `run-build` input is true

* feat: pass `build-args` input to the CMake build command

* fix: split lines from `getMultilineInput` with a whitespace
2023-11-20 20:51:25 +07:00
Alfi Maulana
48cb08d783
feat: configure CMake from the JavaScript Action (#72)
* feat(action): modify to run `main/index.mjs` on Node 20

* feat: add configure cmake step

* feat: output build directory

* feat: get `source-dir` and `build-dir` inputs
2023-11-20 20:18:21 +07:00
Alfi Maulana
ed7c2d179c
build: initialize JavaScript Action project (#69)
* build: initialize JavaScript action project

* chore(dependabot): check for npm package updates

* style: ignore `main` dir and `README.md` from being formatted

* ci: add Build workflow that contains Build Package job

* ci: add Test Package job in the Test workflow

* test: add an empty `main.test.ts` test

* chore: adjust Git attributes for `main/index.mjs` file

* docs(readme): add a build status badge
2023-11-20 18:25:22 +07:00