Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 29 additions & 13 deletions .circleci/ci.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,34 @@
version: 2.1

job:
build-and-test:
# Using a specific version of the Rust image for reproducible builds
docker:
- image: cimg/rust:1.75.0
jobs:
say-hello:
docker:
- image: cimg/base:current

steps:
- checkout
- run:
name: "Check formatting"
command: "cargo fmt -- --check"
- run:
name: "Lint with Clippy"
command: "cargo clippy --all-targets -- -D warnings"
- run:
name: "Run tests"
command: "cargo test"
Comment thread
Dargon789 marked this conversation as resolved.
name: "Say hello"
command: "echo Hello, World!"

workflows:
say-hello-workflow:
jobs:
- say-hello

- run:
Comment thread
Dargon789 marked this conversation as resolved.
name: Plan a deploy
command: |
circleci run release plan \
--environment-name="<environment-name>" \
--component-name="<component-name>" \
Comment thread
Dargon789 marked this conversation as resolved.
--target-version="<some-version-name>"
# Your job here doing the actual deployment
- run:
name: Update a deploy to SUCCESS
command: circleci run release update --status=SUCCESS
when: on_success
- run:
name: Update planned deploy to FAILED
command: circleci run release update --status=FAILED
when: on_fail
Comment thread
Dargon789 marked this conversation as resolved.
Loading