Commit Graph

41 Commits

Author SHA1 Message Date
John Niang
a3772fab1b Add build script for ui project
Signed-off-by: John Niang <johnniang@foxmail.com>
2024-02-03 22:51:50 +08:00
John Niang
b4bf425a09 Remove analyzing code step in test job
Because we have enabled Automatic Analysis

Signed-off-by: John Niang <johnniang@foxmail.com>
2024-01-30 16:37:51 +08:00
John Niang
c59aed6510 Add codecov action into workflow
Signed-off-by: John Niang <johnniang@foxmail.com>
2024-01-15 00:16:48 +08:00
John Niang
883c1fadb6 Refactor workflow by not using composite actions from halo-sigs/actions
Signed-off-by: John Niang <johnniang@foxmail.com>
2024-01-10 14:14:36 +08:00
rick
84bcf9bd0f test: run e2e testing on all supported databases 2023-11-29 05:39:51 +00:00
Rick
ce5c1f9052 test: add e2e test cases of user, role, and plugin (#4920)
* chore: provide an out-of-the-box gitpod config file

* test: add e2e test cases of user, role, and plugin

---------

Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
Co-authored-by: John Niang <johnniang@foxmail.com>
2023-11-28 21:52:44 +08:00
John Niang
4ee4a8fd36 Merge pull request #4896 from ruibaby/chore/use-ibm-semeru-runtimes
chore: use ibm-semeru-runtimes to replace eclipse-temurin as the base image
2023-11-24 10:54:08 +08:00
John Niang
dec7a7f222 Merge branch 'main' into chore/use-ibm-semeru-runtimes 2023-11-23 23:29:40 +08:00
rick
6bde0c8848 fix: the image tag might be wrong when it is not a pr
Signed-off-by: Rick <LinuxSuRen@users.noreply.github.com>
2023-11-23 10:49:14 +00:00
Ryan Wang
6cecca25d2 Add platforms input for docker build step
Signed-off-by: Ryan Wang <i@ryanc.cc>
2023-11-23 16:06:26 +08:00
rick
2e77ff9c64 test: add e2e testing for the backend
Signed-off-by: Rick <LinuxSuRen@users.noreply.github.com>
2023-11-23 03:32:11 +00:00
John Niang
a0ea21175c Revert "ci: push image to GHCR for pull_request event" (#4865)
Reverts halo-dev/halo#4588

According to https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#using-secrets-in-a-workflow, we cannot obtain secrets in pull requests, so that we are not able to push docker image for every pull request.

```release-note
None
```
2023-11-16 08:36:07 +00:00
John Niang
c5dd569aa7 Disable code scanning for pull requests (#4863) 2023-11-16 15:37:59 +08:00
John Niang
08898bf100 Integrate with SonarCloud 2023-11-15 15:14:55 +08:00
BugKing
32d2def93c ci: push image to GHCR for pull_request event 2023-09-11 13:57:34 +08:00
John Niang
ed14fcb5f4 Support publishing to maven central repository (#3767)
#### What type of PR is this?

/kind feature
/area core

#### What this PR does / why we need it:

Use Gradle plugin `maven-publish` to publish Halo modules(`platform.application`, `platform.plugin` and `api`) to Maven central repository.

```bash
# Try to publish to Maven local repository.
./gradlew publish
# Really publish to Maven central repository.
./gradlew -Prelease publish -PossrhUsername=username -PossrhPassword=password
```

Note that currently we only support manually publishing.

#### Which issue(s) this PR fixes:

Fixes https://github.com/halo-dev/halo/issues/2730

#### Does this PR introduce a user-facing change?

```release-note
None
```
2023-04-18 14:28:23 +08:00
John Niang
c43a81058a Refactor workflow for new console project (#3445)
Signed-off-by: johnniang <johnniang@fastmail.com>
2023-03-02 18:07:23 +08:00
John Niang
0d9ec4f197 Report test result using Jacoco plugin (#3385) 2023-02-24 15:51:21 +08:00
John Niang
03ec23f90f Bump up checkout and setup-java actions (#3368) 2023-02-22 23:03:48 +08:00
John Niang
8f21880683 Enable CI on release branches (#2876) 2022-12-08 10:46:26 +08:00
John Niang
cd5cc74714 Set docker image name properly when releasing (#2872) 2022-12-07 15:56:03 +08:00
John Niang
84b28cec16 Build console with release tag when releasing (#2665) 2022-11-07 16:03:15 +08:00
John Niang
cd2dc99898 Change condition of docker push (#2499) 2022-09-30 19:04:24 +08:00
John Niang
a2ee2e492e Support pushing to Docker Hub (#2392)
Signed-off-by: johnniang <johnniang@fastmail.com>

Signed-off-by: johnniang <johnniang@fastmail.com>
2022-09-07 22:39:04 +08:00
John Niang
9ed0dcafcc Change image name to halo-dev (#2264) 2022-07-19 23:47:36 +08:00
John Niang
fe816e6843 Add checkout-from parameter for composite action (#2241)
#### What type of PR is this?

/kind bug

#### What this PR does / why we need it:

Add checkout-from parameter for composite action. Please see <a801af5be5/README.md>.

If we don't set the parameter for the action, it will checkout from `default branch` to build docker image. You can see <https://github.com/halo-dev/halo/runs/7316162265?check_suite_focus=true#step:2:478>.

#### Which issue(s) this PR fixes:

<!--
PR 合并时自动关闭 issue。
Automatically closes linked issue when PR is merged.

用法:`Fixes #<issue 号>`,或者 `Fixes (粘贴 issue 完整链接)`
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Fixes #

#### Special notes for your reviewer:

#### Does this PR introduce a user-facing change?

```release-note
None
```
2022-07-13 09:41:09 +00:00
John Niang
5953d2201d Refactor CICD for Halo next (#2236) 2022-07-12 11:01:00 +08:00
guqing
e2843adbe7 Create basic project structure for halo 2.0 (#1699)
* feat: Add project structure

* feat: Add config

* feat: Add flyway migrate config for h2 and mysql and postgresql

* fix: checkstyle config

* chore: Upgrade springboot 2.6 to 3.0.0-m1

* feat: Add spring snapshot url for repositories

* refactor: Change jdk11 to jdk17 for github ci config

* refactor: update build.gradle config
2022-03-04 15:04:11 +08:00
John Niang
f06f95fbdf Remove prefix v of tag name when releasing a new version (#1571)
Signed-off-by: John Niang <johnniang@fastmail.com>
2021-12-06 16:17:55 +08:00
John Niang
a376dca4d5 Set the final version with tag name when releasing (#1511)
Signed-off-by: John Niang <johnniang@fastmail.com>
2021-11-01 23:16:41 +08:00
John Niang
4ffbd502fe Refactor docker release in GitHub workflow (#1510)
Signed-off-by: John Niang <johnniang@fastmail.com>
2021-11-01 08:56:58 +08:00
John Niang
6be4051f9e Simplify Java setup in GitHub workflow (#1509)
Signed-off-by: John Niang <johnniang@fastmail.com>
2021-10-31 21:48:53 +08:00
guqing
95c0271cf1 feat: add issues triage action config (#1416) 2021-07-15 18:26:40 +08:00
Ryan Wang
77824d50e3 Fix github actions build. (#1377)
* chore: fix github actions build.

* test: github actions
2021-05-27 13:45:58 +08:00
John Niang
bcf26fdc50 Refactor Dockerfile with layered jar (#1248)
* Refactor Dockerfile with layered jar

* Add projectVersion print task

* Refactor docker build process

* Remove aliyun maven mirror

* Correct multi platforms list

* Correct multi platforms list again

* Make docker platforms configurable
2021-01-27 23:55:57 +08:00
John Niang
7cb4f3464a Replace travis ci with github action (#1212)
* 1196 refactor/ci (#3)

* Remove .travis.yml

* Refactor github action partially

* Fix yaml syntax error

* Add run command for every step

* Set current branch name into halo.yml temporarily

* Test validation.yml

* Add upload-release-asset step into release.yml

* Perfect release.yml

* Fix indent error

* Refactor on condition in release.yml

* Refactor on condition in validation.yml

* Fix release.yml

* Fix upload_url value set

* Fix environment set error

* Change artifact variable from output into global environment

* Fix deprecated environment set method

* Fix environment variable set error

* Change assert_content_type with application/zip

* Refactor upload release step

* Fix release id set

* Fix release id set again

* Fix syntax error

* Refactor upload process

* Refactor halo ci

* Make build step rely on check step

* Inspect docker action

* Inspect docker action again

* Refine bootBuildImage config

* Refactor bootBuildImage config and halo ci

* Fix download artifact path error

* Fix docker image name concat error

* Remove downloaded files inspect tips
2021-01-03 22:05:39 +08:00
John Niang
30e28b5257 Upgrade dependencies (#1184)
* Update spring boot version and source compatibility version

* Rearrange some configs

* Upgrade swagger to 3.0.0

* Make swagger configurable

* Make swagger-ui.html path backward compatible

* Change jdk version into 11 in ci/cd scripts and Dockerfile
2020-12-08 01:20:19 +08:00
John Niang
44a6c46620 feat: enable default theme submodule support. (#548)
* Remove anatole theme for submodule

* Enable submodule support

* Enable submodule support for checkouting by github action
2020-02-09 11:43:00 +08:00
johnniang
73bea52f68 Enable github action cache for CI 2020-01-31 11:22:00 +08:00
johnniang
acc8ec44d2 Enable github ci on pull request 2020-01-30 23:26:39 +08:00
John Niang
98603609c5 Create gradle.yml 2019-11-20 17:51:57 +08:00