Skip to content

Add basic CI setup

Add basic CI setup #3

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
check:
name: Check library
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Check library
run: cargo check
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run tests
run: cargo test
fmt:
name: Run rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: "rustfmt"
- name: Run rustfmt
run: cargo fmt -- --check