diff --git a/.github/workflows/rust-tests.yml b/.github/workflows/checks.yml similarity index 73% rename from .github/workflows/rust-tests.yml rename to .github/workflows/checks.yml index ab56e3c39..ea268986d 100644 --- a/.github/workflows/rust-tests.yml +++ b/.github/workflows/checks.yml @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 000000000..e61b5afdc --- /dev/null +++ b/.github/workflows/tests.yml @@ -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 diff --git a/taskchampion/src/lib.rs b/taskchampion/src/lib.rs index a05b1ab7b..665fe3a64 100644 --- a/taskchampion/src/lib.rs +++ b/taskchampion/src/lib.rs @@ -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;