mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 01:32:25 -05:00
[chore] Fiddle with CI tests; use wasmsqlite3 for CI tests (#2966)
* [chore] Update CI test stuff * don't bother with ldflags * use wasmsqlite3
This commit is contained in:
parent
45fe295caa
commit
9caf29bed2
2 changed files with 67 additions and 24 deletions
43
.drone.yml
43
.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
|
||||
|
||||
...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue