summaryrefslogtreecommitdiff
path: root/.drone.yml
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-06-05 21:40:08 +0200
committerLibravatar GitHub <noreply@github.com>2024-06-05 21:40:08 +0200
commit9caf29bed25bb9315327e44de4a4863bd494596c (patch)
tree308987f53fbc954aec0c972693c919269d603216 /.drone.yml
parentCompile filter keyword regexps when touched through PutFilter or UpdateFilter... (diff)
downloadgotosocial-9caf29bed25bb9315327e44de4a4863bd494596c.tar.xz
[chore] Fiddle with CI tests; use wasmsqlite3 for CI tests (#2966)
* [chore] Update CI test stuff * don't bother with ldflags * use wasmsqlite3
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml43
1 files changed, 27 insertions, 16 deletions
diff --git a/.drone.yml b/.drone.yml
index 57bf39502..144e21078 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -34,11 +34,20 @@ steps:
path: /root/.cache/go-build
- name: go-src
path: /go
+ environment:
+ CGO_ENABLED: "0"
commands:
- apk update --no-cache && apk add git
- - CGO_ENABLED=0 GTS_DB_TYPE="sqlite" GTS_DB_ADDRESS=":memory:" go test ./...
- - CGO_ENABLED=0 ./test/envparsing.sh
- - CGO_ENABLED=0 ./test/swagger.sh
+ - >-
+ go test
+ -failfast
+ -timeout=20m
+ -tags "wasmsqlite3 netgo osusergo static_build kvformat timetzdata"
+ ./...
+ - ./test/envparsing.sh
+ - ./test/swagger.sh
+ depends_on:
+ - lint
when:
event:
include:
@@ -46,38 +55,40 @@ steps:
- name: web-setup
image: node:18-alpine
- when:
- event:
- include:
- - pull_request
volumes:
- name: yarn_cache
path: /tmp/cache
commands:
- yarn --cwd ./web/source install --frozen-lockfile --cache-folder /tmp/cache
- yarn --cwd ./web/source ts-patch install # https://typia.io/docs/setup/#manual-setup
+ depends_on:
+ - test
+ when:
+ event:
+ include:
+ - pull_request
- name: web-lint
image: node:18-alpine
+ commands:
+ - yarn --cwd ./web/source lint
+ depends_on:
+ - web-setup
when:
event:
include:
- pull_request
- depends_on:
- - web-setup
- commands:
- - yarn --cwd ./web/source lint
- name: web-build
image: node:18-alpine
+ commands:
+ - yarn --cwd ./web/source build
+ depends_on:
+ - web-setup
when:
event:
include:
- pull_request
- depends_on:
- - web-setup
- commands:
- - yarn --cwd ./web/source build
- name: snapshot
image: superseriousbusiness/gotosocial-drone-build:0.6.0 # https://github.com/superseriousbusiness/gotosocial-drone-build
@@ -193,6 +204,6 @@ steps:
---
kind: signature
-hmac: c07f32c63cbb8180c1a37e46ff1362c1c45586819b52c6de67366ae3504314e4
+hmac: 2e74313f4192b3e6daf6d1d00a7c3796019d93da7ce7e0a77208ccc3c37089b0
...