Skip to content

Merge pull request #195 from ngrok/bmps/clean-house #671

Merge pull request #195 from ngrok/bmps/clean-house

Merge pull request #195 from ngrok/bmps/clean-house #671

Workflow file for this run

on:
push:
branches: [main]
pull_request:
workflow_call:
secrets:
NGROK_AUTHTOKEN:
required: true
name: Continuous integration
jobs:
udeps:
name: Udeps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jrobsonchase/[email protected]
- uses: ./.github/workflows/rust-cache
- uses: actions-rs/cargo@v1
with:
command: udeps
args: --workspace --all-targets --all-features
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jrobsonchase/[email protected]
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jrobsonchase/[email protected]
- uses: ./.github/workflows/rust-cache
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --all-features --workspace -- -D warnings
test-nix:
name: Test Nix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jrobsonchase/[email protected]
- uses: ./.github/workflows/rust-cache
- uses: actions-rs/cargo@v1
env:
NGROK_AUTHTOKEN: ${{ secrets.NGROK_AUTHTOKEN }}
with:
command: test
args: --workspace --all-targets
test-stable:
name: Test Stable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
# We don't actually have sccache installed here (yet), but it still
# benefits from the cargo cache.
- uses: ./.github/workflows/rust-cache
- uses: actions-rs/cargo@v1
env:
NGROK_AUTHTOKEN: ${{ secrets.NGROK_AUTHTOKEN }}
with:
command: test
args: --features=paid-tests,long-tests --workspace --all-targets
test-win:
name: Test Windows Stable
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
# We don't actually have sccache installed here (yet), but it still
# benefits from the cargo cache.
- uses: ./.github/workflows/rust-cache
- uses: actions-rs/cargo@v1
env:
NGROK_AUTHTOKEN: ${{ secrets.NGROK_AUTHTOKEN }}
with:
command: test
args: --workspace --all-targets
semver:
name: Semver Check
runs-on: ubuntu-latest
strategy:
matrix:
crate: [muxado, ngrok]
steps:
- uses: actions/checkout@v4
- uses: jrobsonchase/[email protected]
- uses: ./.github/workflows/rust-cache
- uses: actions-rs/cargo@v1
name: semver checks
with:
command: semver-checks
args: check-release -p ${{ matrix.crate }}