Skip to content

feat: add name parameter to RunnableImage #758

feat: add name parameter to RunnableImage

feat: add name parameter to RunnableImage #758

Workflow file for this run

name: Continuous Integration
on:
pull_request:
merge_group:
push:
branches: [ master, dev ]
jobs:
msrv:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
cargo-cmd:
- build --all-features
- build --no-default-features
steps:
- uses: actions/checkout@v4
- name: Get current MSRV from Cargo.toml
id: current_msrv
run: |
msrv=$(cat testcontainers/Cargo.toml | grep rust-version | sed 's/.* = "//; s/"//')
echo "::set-output name=msrv::$msrv"
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{steps.current_msrv.outputs.msrv}}
- uses: Swatinem/[email protected]
- run: cargo ${{ matrix['cargo-cmd'] }}
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
cargo-cmd:
- test --all-features
- test --no-default-features
steps:
- uses: actions/checkout@v4
- name: Enable Docker Remote API on Localhost
shell: bash
run: |
sudo mkdir -p /etc/systemd/system/docker.service.d/
sudo cp ./.github/docker.override.conf /etc/systemd/system/docker.service.d/override.conf
sudo systemctl daemon-reload
sudo systemctl restart docker
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/[email protected]
- run: cargo ${{ matrix['cargo-cmd'] }}
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: rustfmt
- uses: dprint/[email protected]
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
with:
components: clippy
- uses: Swatinem/[email protected]
- run: cargo clippy --all-targets -- -D warnings
prlint:
name: PR name check
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: CondeNast/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# For PRs we gonna use squash-strategy, so commits names not so matter
ignoreCommits: "true"