ci: update ci and add xtask testing #957
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
fmt: | |
name: fmt | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install rustfmt from the rust stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- name: Rustfmt | |
run: cargo fmt --all -- --check | |
build_and_test: | |
name: Sugondat - latest | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- name: cargo build | |
run: cargo build --verbose --all | |
- name: cargo test | |
run: cargo test --verbose --all | |
- name: cargo xtask test | |
run: cargo xtask test | |
docker_build: | |
name: docker build | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Start Docker Daemon | |
run: | | |
dockerd & | |
- name: Wait for Docker Daemon to start | |
run: | | |
until docker info; do | |
echo "Waiting for Docker daemon to start..." | |
sleep 1 | |
done | |
- name: Build docker image | |
run: docker compose -f docker/docker-compose.yml build |