Merge pull request #254 from taskchampion/issue216

Define and test an MSRV
This commit is contained in:
Dustin J. Mitchell 2021-05-31 08:39:01 -04:00 committed by GitHub
commit 1bd97fd15d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 50 additions and 28 deletions

View file

@ -8,8 +8,9 @@ on:
types: [opened, reopened, synchronize]
jobs:
test:
clippy:
runs-on: ubuntu-latest
name: "Clippy"
steps:
- uses: actions/checkout@v1
@ -26,37 +27,10 @@ jobs:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/cargo@v1.0.1
with:
command: check
- name: test
run: cargo test
clippy:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v1
- name: Cache cargo registry
uses: actions/cache@v1
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v1
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- run: rustup component add clippy
- uses: actions-rs/clippy-check@v1
@ -66,6 +40,7 @@ jobs:
mdbook:
runs-on: ubuntu-latest
name: "Documentation"
steps:
- uses: actions/checkout@v1

43
.github/workflows/tests.yml vendored Normal file
View file

@ -0,0 +1,43 @@
name: taskchampion
on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- "1.47" # MSRV
- "stable"
name: "Test - Rust ${{ matrix.rust }}"
steps:
- uses: actions/checkout@v1
- name: Cache cargo registry
uses: actions/cache@v1
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-${{ matrix.rust }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v1
with:
path: target
key: ${{ runner.os }}-${{ matrix.rust }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
toolchain: "${{ matrix.rust }}"
override: true
- name: test
run: cargo test

View file

@ -29,6 +29,10 @@ Users can define their own server impelementations.
See the [TaskChampion Book](http://taskchampion.github.com/taskchampion)
for more information about the design and usage of the tool.
# Minimum Supported Rust Version
This crate supports Rust version 1.47 and higher.
*/
mod errors;