Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nfkit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
nfkit
Commits
977ad6f8
Commit
977ad6f8
authored
Oct 24, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests
parent
68ec0e9e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
98 deletions
+5
-98
.gitlab-ci.docker.yml
.gitlab-ci.docker.yml
+0
-51
.gitlab-ci.upload.yml
.gitlab-ci.upload.yml
+0
-42
tests/workflow.spec.ts
tests/workflow.spec.ts
+5
-5
No files found.
.gitlab-ci.docker.yml
deleted
100644 → 0
View file @
68ec0e9e
stages
:
-
build
-
deploy
variables
:
GIT_DEPTH
:
"
1"
before_script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
.build-image
:
stage
:
build
script
:
-
docker build --pull -t $TARGET_IMAGE .
-
docker push $TARGET_IMAGE
build-x86
:
extends
:
.build-image
tags
:
-
docker
variables
:
TARGET_IMAGE
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-x86
build-arm
:
extends
:
.build-image
tags
:
-
docker-arm
variables
:
TARGET_IMAGE
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-arm
.deploy
:
stage
:
deploy
tags
:
-
docker
script
:
-
docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-x86
-
docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-arm
-
docker manifest create $TARGET_IMAGE --amend $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-x86 --amend
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-arm
-
docker manifest push $TARGET_IMAGE
deploy_latest
:
extends
:
.deploy
variables
:
TARGET_IMAGE
:
$CI_REGISTRY_IMAGE:latest
only
:
-
master
deploy_branch
:
extends
:
.deploy
variables
:
TARGET_IMAGE
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
.gitlab-ci.upload.yml
deleted
100644 → 0
View file @
68ec0e9e
stages
:
-
install
-
build
-
deploy
variables
:
GIT_DEPTH
:
"
1"
npm_ci
:
stage
:
install
tags
:
-
linux
script
:
-
npm ci
artifacts
:
paths
:
-
node_modules
.build_base
:
stage
:
build
tags
:
-
linux
dependencies
:
-
npm_ci
build
:
extends
:
.build_base
script
:
npm run build
artifacts
:
paths
:
-
dist/
upload_to_minio
:
stage
:
deploy
dependencies
:
-
build
tags
:
-
linux
script
:
-
aws s3 --endpoint=https://minio.momobako.com:9000 sync --delete dist/ s3://nanahira/path
only
:
-
master
tests/workflow.spec.ts
View file @
977ad6f8
...
@@ -28,8 +28,8 @@ describe('workflow – basics', () => {
...
@@ -28,8 +28,8 @@ describe('workflow – basics', () => {
}
}
const
a
=
new
A
();
const
a
=
new
A
();
const
result
=
workflow
(
a
).
foo
().
bar
().
baz
()().
value
;
const
result
=
await
workflow
(
a
).
foo
().
bar
().
baz
()().
value
;
await
expect
(
result
).
resolves
.
toBe
(
109
);
await
expect
(
result
).
toBe
(
109
);
});
});
it
(
'
property-only terminal await works
'
,
async
()
=>
{
it
(
'
property-only terminal await works
'
,
async
()
=>
{
...
@@ -37,8 +37,8 @@ describe('workflow – basics', () => {
...
@@ -37,8 +37,8 @@ describe('workflow – basics', () => {
value
=
7
;
value
=
7
;
}
}
const
a
=
new
A
();
const
a
=
new
A
();
const
result
=
workflow
(
a
).
value
;
const
result
=
await
workflow
(
a
).
value
;
await
expect
(
result
).
resolves
.
toBe
(
7
);
await
expect
(
result
).
toBe
(
7
);
});
});
it
(
'
throws when invoking a non-function value
'
,
async
()
=>
{
it
(
'
throws when invoking a non-function value
'
,
async
()
=>
{
...
@@ -249,7 +249,7 @@ describe('workflow – property chains', () => {
...
@@ -249,7 +249,7 @@ describe('workflow – property chains', () => {
cfg
=
{
feature
:
{
enabled
:
true
as
boolean
}
};
cfg
=
{
feature
:
{
enabled
:
true
as
boolean
}
};
}
}
const
result
=
await
workflow
(
new
A
()).
cfg
.
feature
.
enabled
;
const
result
=
await
workflow
(
new
A
()).
cfg
.
feature
.
enabled
;
await
expect
(
result
).
resolves
.
toBe
(
true
);
await
expect
(
result
).
toBe
(
true
);
});
});
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment