mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
9e07882531
This got introduced in 2e3004f89e
, but
there should be no reason to run ignored tests; if they are #[ignore]
it’s probably for a good reason.
This is particularly annoying with doctests, where ignore is used to
explicitly highlight broken/untested code.
Thanks jonas’ for noticing!
57 lines
1.4 KiB
YAML
57 lines
1.4 KiB
YAML
name: 'Build'
|
|
run-name: 'Building xmpp-rs libraries'
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
|
|
env:
|
|
FEATURES: ""
|
|
RUST_BACKTRACE: "full"
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: 'docker'
|
|
container:
|
|
image: 'rust:alpine'
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Rustfmt
|
|
run: |
|
|
rustup update
|
|
rustup component add rustfmt
|
|
cargo fmt --version
|
|
cargo fmt --check
|
|
|
|
test-stable:
|
|
needs: [lint]
|
|
runs-on: 'docker'
|
|
container:
|
|
image: 'rust:alpine'
|
|
steps:
|
|
- run: apk update; apk add pkgconf musl-dev libressl-dev
|
|
- uses: actions/checkout@v4
|
|
- name: Print versions
|
|
run: rustc --version; cargo --version
|
|
- name: Run tests
|
|
run: cargo test --verbose
|
|
- name: Run tests without default features
|
|
run: cargo test --verbose --no-default-features
|
|
env:
|
|
RUSTFLAGS: " -D warnings"
|
|
|
|
test-nightly:
|
|
needs: [lint]
|
|
runs-on: 'docker'
|
|
container:
|
|
image: 'rustlang/rust:nightly-alpine'
|
|
steps:
|
|
- run: apk update; apk add pkgconf musl-dev libressl-dev
|
|
- uses: actions/checkout@v4
|
|
- name: Print versions
|
|
run: rustc --version; cargo --version
|
|
- name: Run tests
|
|
run: cargo test --verbose
|
|
- name: Run tests without default features
|
|
run: cargo test --verbose --no-default-features
|
|
env:
|
|
RUSTFLAGS: " -D warnings"
|