- Update the version of `actions/checkout` from `v2` to `v4` in `.github/workflows/build.yml`
- Update the version of `actions/setup-go` from `v2` to `v4` in `.github/workflows/build.yml`
- Update the version of `codecov/codecov-action` from `v2` to `v3` in `.github/workflows/build.yml`
- Update the version of `docker/setup-qemu-action` from `v1` to `v3` in `.github/workflows/build.yml`
- Update the version of `docker/setup-buildx-action` from `v1` to `v3` in `.github/workflows/build.yml`
- Update the version of `docker/login-action` from `v1` to `v3` in `.github/workflows/build.yml`
- Update the version of `docker/build-push-action` from `v2` to `v5` in `.github/workflows/build.yml`
- Update the version of `docker/setup-qemu-action` from `v1` to `v3` in `.github/workflows/release.yml`
- Update the version of `docker/setup-buildx-action` from `v1` to `v3` in `.github/workflows/release.yml`
- Update the version of `docker/login-action` from `v1` to `v3` in `.github/workflows/release.yml`
- Update the version of `docker/build
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* refactor: refactor test functions and remove unused variables
- Remove the `runArgs` variable
- Change the way `flag.CommandLine.Parse` is called
- Modify the `TestBinCmdPath` function
- Modify the `TestConfigWithRuntimeArgs` function
- Modify the `TestCtrlCWhenHaveKillDelay` function
- Modify the `include_file` value in the `TestCtrlCWhenHaveKillDelay` function
- Modify the `include_file` value in the `TestConfigRuntimeArgs` function
- Modify the `TestFlag` function
- Modify the `TestConfigRuntimeArgs` function
- Modify the `Test_killCmd_SendInterrupt_false` function
- Modify the `bytesRead` variable in the `Test_killCmd_SendInterrupt_false` function
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* fix: testing
Signed-off-by: appleboy <appleboy.tw@gmail.com>
---------
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Signed-off-by: appleboy <appleboy.tw@gmail.com>
* feat: pre_cmd before each build
* test: pre_cmd option & runPreCmd func
* refactor: cmd&pre_cmd run logic into runCommand
* test: runCommand func
* docs: update example toml
* refactor: use fs to ensure pre_cmd is working
* feat: run post_cmd after ^C
* test: post_cmd
* docs: update example toml
* style: use single quotes instead of escape char
* Fix a few linter warnings
* Prevent double delays and add some docs
I just noticed that reusing `delay` for the poll interval will cause an unintended double delay (first the delay is used as interval, and when a change happened delay is used to wait before building after the change).
Adding a dedicated `poll_interval` parameter allows people to prevent that and apply a more fine-grained configuration.
Also added the new params to the example toml file with some docs which I forgot to do in the initial PR.
* feat: support executing bin again when bin exit
* fix bug and add feature flag
* add rerun test
* disable rerun in default
* fix logic error
* delete unnecessary code
* add default option in toml
Co-authored-by: xiantang <zhujingdi1998@gmail.com>
* Add the tutorial for docker users
Add example of Dockerfile and docker-compose.yaml for Docker users who don't want to use air image which was fixed with a Golang version.
* Add code block hint code block
Add Dockerfile hint and yaml hint for code block in README.md