Test #193
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, pull_request] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
lint: | |
# Avoid duplicate jobs on PR from a branch on the same repo | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
- uses: taiki-e/install-action@cargo-make | |
- uses: taiki-e/install-action@cargo-deny | |
- run: cargo make fmt-check | |
- run: cargo make clippy | |
- run: cargo deny check | |
- run: cargo make docs | |
test: | |
# Avoid duplicate jobs on PR from a branch on the same repo | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
runs-on: ubuntu-latest | |
services: | |
jaeger: | |
image: jaegertracing/all-in-one:1.35 | |
env: | |
COLLECTOR_OTLP_ENABLED: "true" | |
COLLECTOR_OTLP_HTTP_HOST_PORT: 55681 | |
ports: | |
- 16685:16685 | |
- 55681:55681 | |
steps: | |
- run: sudo echo "127.0.0.1 jaeger" | sudo tee -a /etc/hosts | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
- uses: taiki-e/install-action@cargo-make | |
- uses: taiki-e/install-action@nextest | |
- run: cargo make test | |
alls-green: | |
if: always() && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name) | |
runs-on: ubuntu-latest | |
needs: | |
- lint | |
- test | |
steps: | |
- run: ${{ !contains(needs.*.result, 'failure') }} |