ci: test
This commit is contained in:
42
.drone.yml
Normal file
42
.drone.yml
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: test-on-amd64
|
||||||
|
|
||||||
|
platform:
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build-release
|
||||||
|
image: rust:1.89
|
||||||
|
commands:
|
||||||
|
- cargo build --verbose --workspace --release
|
||||||
|
- name: test
|
||||||
|
image: rust:1.89
|
||||||
|
commands:
|
||||||
|
- cargo test --verbose --workspace
|
||||||
|
- name: lint
|
||||||
|
image: rust:1.89
|
||||||
|
commands:
|
||||||
|
- rustup component add clippy
|
||||||
|
- cargo clippy --all-targets --all-features
|
||||||
|
- name: push-binary-release
|
||||||
|
image: plugins/gitea-release
|
||||||
|
settings:
|
||||||
|
api_url: https://gitea.lardenois.cc
|
||||||
|
username:
|
||||||
|
from_secret: gitea_user
|
||||||
|
token:
|
||||||
|
from_secret: gitea_token
|
||||||
|
files:
|
||||||
|
- target/release/node-notifier
|
||||||
|
title: "Release ${DRONE_TAG:-v${DRONE_BUILD_NUMBER}}"
|
||||||
|
note: "Automated release from commit ${DRONE_COMMIT_SHA}"
|
||||||
|
checksum:
|
||||||
|
- sha256
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
status: success
|
||||||
|
depends_on:
|
||||||
|
- build-release
|
||||||
|
- test
|
||||||
|
- lint
|
||||||
Reference in New Issue
Block a user