Skip to content

Add CI runner for pull_request. #405

Add CI runner for pull_request.

Add CI runner for pull_request. #405

Workflow file for this run

on: [push, pull_request]
name: CI
jobs:
check:
name: Check Crates
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install MSRV Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.60.0
- uses: Swatinem/rust-cache@v2
- name: "check MSRV"
run: cargo check
msrv:
name: Check MSRV
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
test:
name: Test Crates
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test