Skip to content

Commit

Permalink
Merge pull request #120 from daboross/add-msrv-tests
Browse files Browse the repository at this point in the history
Add tests ensuring we don't accidentally increase MSRV
  • Loading branch information
daboross committed Mar 23, 2023
2 parents 0301a3e + c0d5897 commit f8a0744
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,69 @@ jobs:
- run: cargo run --example syslog3 --features syslog-3
- run: cargo run --example syslog4 --features syslog-4
- run: cargo run --example syslog --features syslog-6
msrv:
name: MSRV Compatability - fern
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
# when updating this, also update rust-version in Cargo.toml
toolchain: 1.31.0
override: true
- run: cargo build
- run: cargo build --features reopen-1,reopen-03,meta-logging-in-format,syslog-3
msrv_date_based:
name: MSRV Compatability - fern/date-based
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.48.0
override: true
- run: cargo build --features date-based
msrv_syslog_4:
name: MSRV Compatability - fern/syslog-4
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.51.0
override: true
- run: cargo build --features syslog-4
msrv_syslog_6:
name: MSRV Compatability - fern/syslog-6
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.59.0
override: true
- run: cargo build --features syslog-6
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ version = "0.6.1"
authors = ["David Ross <daboross@daboross.net>"]
description = "Simple, efficient logging"
edition = "2018"
rust-version = "1.31"

documentation = "https://docs.rs/fern/"
repository = "https://github.com/daboross/fern"
Expand Down

0 comments on commit f8a0744

Please sign in to comment.