inventory-system/.drone.yml
Jake Hillion 3f2fea0447
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
added dronefile
2022-07-20 23:13:43 +01:00

62 lines
1.1 KiB
YAML

---
kind: pipeline
type: docker
name: default
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: react
image: node:18
commands:
- cd gui/
- npm install
- npm run build
depends_on:
- submodules
- name: vendor
image: rust:1.62
commands:
- mkdir .cargo
- cargo vendor > .cargo/config
- name: format
image: rust:1.62
commands:
- rustup component add rustfmt
- cargo fmt --all -- --check
depends_on:
- vendor
- name: lint
image: rust:1.62
commands:
- rustup component add clippy
- cargo clippy --quiet --target-dir target_clippy/ --all-targets -- -D warnings
depends_on:
- vendor
- name: test
image: rust:1.62
commands:
- cargo test --target-dir target_test/
depends_on:
- vendor
- name: build
image: rust:1.62
commands:
- cargo build
depends_on:
- vendor
- react
---
kind: signature
hmac: 91882102a1af196631e2fcf42d5d0d4012b8ccd9bab1647a073fd06ee114b581
...