Skip to content

Merge pull request #36 from mockersf/ci-to-github-actions #1

Merge pull request #36 from mockersf/ci-to-github-actions

Merge pull request #36 from mockersf/ci-to-github-actions #1

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Check format
run: |
cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run clippy
run: |
cargo clippy -- -D warnings
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run tests
run: |
cargo test