Skip to content

test: provide a MySQL service for CI coverage tests #4995

test: provide a MySQL service for CI coverage tests

test: provide a MySQL service for CI coverage tests #4995

Workflow file for this run

name: Dozer CI
on:
workflow_dispatch:
pull_request:
branches: [main]
merge_group:
env:
CARGO_TERM_COLOR: always
concurrency:
group: ci/${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
timeout-minutes: 60
runs-on:
group: Org Larger Runners
labels: ubuntu-latest-4-cores
steps:
- uses: actions/checkout@v3
- name: Install minimal stable with clippy and rustfmt
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: ⚡ Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/.crates.toml
~/.cargo/.crates2.json
~/.cargo/.package-cache
~/.cargo/registry/
~/.cargo/git/db/
target/
key: clippy-${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: |
clippy-${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
clippy-${{ runner.os }}-cargo-
- name: Clippy
run: |
cargo clippy --all-features -- -D warnings
- name: Lint
run: |
cargo fmt -- --check