Skip to content

chore: add github CI #2

chore: add github CI

chore: add github CI #2

Workflow file for this run

on:
push:
branches:
- master
pull_request:
name: CI
jobs:
build_and_test:
name: OS Test
strategy:
fail-fast: false
matrix:
rust-version:
- nightly
- stable
- "1.48"
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust-version }}
- name: Build
run: cargo build
- name: Test
run: cargo test
lint:
name: Clippy and fmt
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Check formatting
run: cargo fmt --check
- name: Check for clippy lints
run: cargo clippy