Skip to content

Fixed binary localization inside Docker images. An example compose.te… #15

Fixed binary localization inside Docker images. An example compose.te…

Fixed binary localization inside Docker images. An example compose.te… #15

Workflow file for this run

name: Continuous integration
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
RUST_LOG: debug
rust_version: 1.75.0
jobs:
# Depends on all action that are required for a "successful" CI run.
ci-pass:
name: CI succeeded
runs-on: ubuntu-latest
if: always()
needs:
- test
- clippy
- fmt
steps:
- name: Check whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
fmt:
name: fmt
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust ${{ env.rust_version }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.rust_version }}
components: rustfmt
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2
- name: Check formatting
run: |
cargo fmt --all -- --check
clippy:
name: Run linter
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust ${{ env.rust_version }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.rust_version }}
components: clippy
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2
- name: clippy
run: |
cargo clippy
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust ${{ env.rust_version }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.rust_version }}
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2
- name: Test unit & integration tests
run: |
cargo +${{ env.rust_version }} test --tests --verbose