Skip to content

Commit

Permalink
ci: test
Browse files Browse the repository at this point in the history
  • Loading branch information
iseki-working committed Dec 29, 2023
1 parent a757765 commit 642422d
Showing 1 changed file with 26 additions and 12 deletions.
38 changes: 26 additions & 12 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ stages: # List of stages for jobs, and their order of execution
- build
- internal-pub
- notify
- test

variables:
GOPROXY: https://goproxy.cn,direct
# GOPATH: "$CI_PROJECT_DIR/.go"
# GOBIN: "$CI_PROJECT_DIR/.go/bin"
# GOPATH: "$CI_PROJECT_DIR/.go"
# GOBIN: "$CI_PROJECT_DIR/.go/bin"
CGO_ENABLED: '0'
# DENO_DIR: "$CI_PROJECT_DIR/.deno"
# GOCACHE: "$CI_PROJECT_DIR/.go-cache"
Expand All @@ -19,11 +20,11 @@ compose-build:
expire_in: 1 day
paths:
- out/bin/*
# cache:
# key: cli-build-cache-v3
# paths:
# - .go/pkg/mod/
# - .go-cache/
# cache:
# key: cli-build-cache-v3
# paths:
# - .go/pkg/mod/
# - .go-cache/
before_script:
- mkdir -p .go-cache
- mkdir -p .go
Expand All @@ -45,11 +46,11 @@ compose-build-with-tag:
expire_in: 1 day
paths:
- out/bin/*
# cache:
# key: cli-build-cache-v3
# paths:
# - .go/pkg/mod/
# - .go-cache/
# cache:
# key: cli-build-cache-v3
# paths:
# - .go/pkg/mod/
# - .go-cache/
before_script:
- mkdir -p .go-cache
- mkdir -p .go
Expand Down Expand Up @@ -90,6 +91,7 @@ internal-cos-upload:

lark-notify:
image: denoland/deno
dependencies: [ ]
stage: notify
cache:
key: cli-deno-cache-1223
Expand All @@ -98,3 +100,15 @@ lark-notify:
script:
- deno run --allow-all ci/lark-push.ts

test:
tags:
- client-build-shell
stage: test
dependencies: [ ]
script:
- gotestsum --junitfile report.xml --format testname
artifacts:
when: always
reports:
junit: report.xml

0 comments on commit 642422d

Please sign in to comment.