File tree Expand file tree Collapse file tree 4 files changed +23
-0
lines changed Expand file tree Collapse file tree 4 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ Officially supported CI servers:
53
53
| [ Gerrit CI] ( https://www.gerritcodereview.com ) | ` ci.GERRIT ` | 🚫 |
54
54
| [ GitHub Actions] ( https://github.com/features/actions/ ) | ` ci.GITHUB_ACTIONS ` | ✅ |
55
55
| [ GitLab CI] ( https://about.gitlab.com/gitlab-ci/ ) | ` ci.GITLAB ` | ✅ |
56
+ | [ Gitea Actions] ( https://about.gitea.com/ ) | ` ci.GITEA_ACTIONS ` | 🚫 |
56
57
| [ GoCD] ( https://www.go.cd/ ) | ` ci.GOCD ` | 🚫 |
57
58
| [ Google Cloud Build] ( https://cloud.google.com/build ) | ` ci.GOOGLE_CLOUD_BUILD ` | 🚫 |
58
59
| [ Harness CI] ( https://www.harness.io/products/continuous-integration ) | ` ci.HARNESS ` | 🚫 |
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ export const DRONE: boolean;
44
44
export const DSARI : boolean ;
45
45
export const EAS : boolean ;
46
46
export const GERRIT : boolean ;
47
+ export const GITEA_ACTIONS : boolean ;
47
48
export const GITHUB_ACTIONS : boolean ;
48
49
export const GITLAB : boolean ;
49
50
export const GOCD : boolean ;
Original file line number Diff line number Diff line change @@ -916,6 +916,22 @@ test('ReleaseHub', function (t) {
916
916
t . end ( )
917
917
} )
918
918
919
+ test ( 'Gitea Actions' , function ( t ) {
920
+ process . env . GITEA_ACTIONS = 'true'
921
+
922
+ clearModule ( './' )
923
+ const ci = require ( './' )
924
+
925
+ t . equal ( ci . isCI , true )
926
+ t . equal ( ci . name , 'Gitea Actions' )
927
+ t . equal ( ci . GITEA_ACTIONS , true )
928
+ assertVendorConstants ( 'GITEA_ACTIONS' , ci , t )
929
+
930
+ delete process . env . GITEA_ACTIONS
931
+
932
+ t . end ( )
933
+ } )
934
+
919
935
function assertVendorConstants ( expect , ci , t ) {
920
936
ci . _vendors . forEach ( function ( constant ) {
921
937
let bool = constant === expect
Original file line number Diff line number Diff line change 114
114
"constant" : " GERRIT" ,
115
115
"env" : " GERRIT_PROJECT"
116
116
},
117
+ {
118
+ "name" : " Gitea Actions" ,
119
+ "constant" : " GITEA_ACTIONS" ,
120
+ "env" : " GITEA_ACTIONS"
121
+ },
117
122
{
118
123
"name" : " GitHub Actions" ,
119
124
"constant" : " GITHUB_ACTIONS" ,
You can’t perform that action at this time.
0 commit comments