Skip to content

Run CI in a docker container (#2) #16

Run CI in a docker container (#2)

Run CI in a docker container (#2) #16

Workflow file for this run

on: [push, pull_request]
name: CI
jobs:
fmt:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/container
with:
run: cargo fmt --all -- --check
clippy:
name: cargo clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/container
with:
run: cargo clippy --all-features && cargo clippy --no-default-features
test:
name: cargo test
runs-on: ubuntu-latest
container:
image: rust:bookworm
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/container
with:
run: cargo test