quickpeep/.ci/woodpecker/check.yml

29 lines
746 B
YAML

# must set build pipeline as .woodpecker/ with the trailing slash to activate the
# multiple pipelines
platform: linux/amd64
.a1: &when
event: [ push, pull_request ]
pipeline:
buildAssets:
when: *when
image: "node:17.8.0-bullseye"
commands:
- apt-get -qq update && apt-get -yqq install python3
- cd quickpeep_static
- yarn install
- yarn build
clippy:
when: *when
image: rust:1.59.0-slim
commands:
- apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libclang-dev
- cargo install sqlx-cli --features sqlite
- cd quickpeep && bash dev_db.sh && cd ..
#- rustup component add clippy
# TODO clippy one day
- cargo check --all