Skip to content

Update to Rust 2021, MSRV 1.59 #5

Update to Rust 2021, MSRV 1.59

Update to Rust 2021, MSRV 1.59 #5

Workflow file for this run

# We use `actions-rs` for most of our actions
#
# This file is for the main tests. clippy & rustfmt are seperate workflows
#
# This is mostly copied from slog-rs repo ;)
on: [push, pull_request]
name: Cargo Test
env:
CARGO_TERM_COLOR: always
# has a history of occasional bugs (especially on old versions)
#
# the ci is free so we might as well use it ;)
CARGO_INCREMENTAL: 0
# Tested versions:
# 1. stable
# 2. nightly
# 3. Minimum Supported Rust Version (MSRV)
jobs:
test:
# Only run on PRs if the source branch is on someone else's repo
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false # Even if one job fails we still want to see the other ones
matrix:
# 1.59 is MSRV. Keep this in sync with Cargo.toml
rust: [1.59, stable, nightly]
# NOTE: We don't really have any "feature combos" to test.
#
# We just have default features and nothing else :)
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
# NOTE: This crate is simple enough we don't need seperate check/test actions
- name: Test
run: |
cargo test --verbose