use the old ci
This commit is contained in:
parent
e2da405c3d
commit
8465f56c85
2 changed files with 2 additions and 76 deletions
74
.github/workflows/ci.yml
vendored
74
.github/workflows/ci.yml
vendored
|
|
@ -1,74 +0,0 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Test Suite
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
rust:
|
||||
- stable
|
||||
- beta
|
||||
- 1.66.0 # MSRV from Cargo.toml
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: ${{ matrix.rust }}
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Use MSRV lockfile for minimum version testing
|
||||
if: matrix.rust == '1.66.0'
|
||||
run: cp Cargo.lock.msrv Cargo.lock
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
- name: Run tests with all features
|
||||
run: cargo test --all-features --verbose
|
||||
|
||||
feature-tests:
|
||||
name: Feature Tests
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
features:
|
||||
- "text"
|
||||
- "unicode"
|
||||
- "bytes"
|
||||
- "inline"
|
||||
- "serde"
|
||||
- "text,unicode"
|
||||
- "text,bytes"
|
||||
- "text,inline"
|
||||
- "text,serde"
|
||||
- "text,unicode,bytes"
|
||||
- "text,unicode,inline"
|
||||
- "text,unicode,serde"
|
||||
- "text,bytes,inline"
|
||||
- "text,bytes,serde"
|
||||
- "text,inline,serde"
|
||||
- "unicode,bytes,inline,serde"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Test with features ${{ matrix.features }}
|
||||
run: cargo test --features ${{ matrix.features }} --verbose
|
||||
|
||||
fmt:
|
||||
name: Rustfmt
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
components: rustfmt
|
||||
- name: Run rustfmt
|
||||
run: cargo fmt --all -- --check
|
||||
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
|
|
@ -16,14 +16,14 @@ jobs:
|
|||
run: make test
|
||||
|
||||
build-stable:
|
||||
name: Build on 1.60.0
|
||||
name: Build on 1.66.0
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: 1.60.0
|
||||
toolchain: 1.66.0
|
||||
- name: Use Cargo.lock.msrv
|
||||
run: cp Cargo.lock.msrv Cargo.lock
|
||||
- name: Test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue