Skip to content

Merge pull request #107 from DanGould/fmt #306

Merge pull request #107 from DanGould/fmt

Merge pull request #107 from DanGould/fmt #306

Workflow file for this run

name: Test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
build:
runs-on: ubuntu-latest
steps:
- uses: KengoTODA/actions-setup-docker-compose@main
with:
version: '2.10.2'
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose -- --nocapture