40 lines
983 B
YAML
40 lines
983 B
YAML
when:
|
|
- event: pull_request
|
|
- event: push
|
|
branch: master
|
|
- event: push
|
|
branch: main
|
|
- event: manual
|
|
|
|
labels:
|
|
ci: domain-linux-native
|
|
platform: linux/amd64
|
|
|
|
clone:
|
|
- name: git
|
|
image: woodpeckerci/plugin-git:2.9.3
|
|
settings:
|
|
remote:
|
|
from_secret: gitea_clone_webdrop
|
|
lfs: false
|
|
|
|
steps:
|
|
prefetch-dependencies:
|
|
image: bash
|
|
commands:
|
|
- mkdir -p "$HOME/.cache/woodpecker/webdrop/nuget"
|
|
- NUGET_PACKAGES="$HOME/.cache/woodpecker/webdrop/nuget" dotnet restore server/WebDrop.slnx
|
|
|
|
api-contract:
|
|
image: bash
|
|
commands:
|
|
- node scripts/check-api-contract.mjs
|
|
|
|
server:
|
|
image: bash
|
|
depends_on: [prefetch-dependencies]
|
|
when:
|
|
- evaluate: 'not (CI_COMMIT_MESSAGE contains "[SKIP TESTS]")'
|
|
commands:
|
|
- NUGET_PACKAGES="$HOME/.cache/woodpecker/webdrop/nuget" dotnet test server/WebDrop.slnx --configuration Release --verbosity minimal --no-restore
|