Skip to content

Set up continuous integration (#1) #4

Set up continuous integration (#1)

Set up continuous integration (#1) #4

Workflow file for this run

name: Rust
on:
push:
branches: ["main"]
pull_request:
jobs:
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: moonrepo/setup-rust@v1
with:
components: rustfmt
- name: Check formatting
run: cargo fmt --all --check
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: moonrepo/setup-rust@v1
with:
components: clippy
- name: Run linter
run: cargo clippy --all-features
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: moonrepo/setup-rust@v1
- name: Run tests
run: cargo test --all-features