Skip to content

Merge pull request #198 from 0x727/dependabot/cargo/serde-1.0.188 #423

Merge pull request #198 from 0x727/dependabot/cargo/serde-1.0.188

Merge pull request #198 from 0x727/dependabot/cargo/serde-1.0.188 #423

Workflow file for this run

name: CI
on:
pull_request:
paths:
- '**'
- '!/*.md'
- '!/docs/**'
- "!/LICENSE-*"
push:
branches:
- main
paths:
- '**'
- '!/*.md'
- '!/docs/**'
- "!/LICENSE-*"
jobs:
ci:
name: CI
needs: [ test,rustfmt,clippy ]
if: github.repository == '0x727/ObserverWard' && github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Done
run: exit 0
test:
name: Test
if: github.repository == '0x727/ObserverWard' && github.actor != 'dependabot[bot]'
strategy:
matrix:
os: [ "ubuntu-latest", "windows-latest", "macos-latest" ]
rust: [ "stable" ]
continue-on-error: ${{ matrix.rust != 'stable' }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
- uses: Swatinem/rust-cache@v1
- name: Build
run: cargo test --no-run --workspace --all-features --all
- name: Default features
run: cargo test --workspace
rustfmt:
name: rustfmt
if: github.repository == '0x727/ObserverWard' && github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
# Not MSRV because its harder to jump between versions and people are
# more likely to have stable
toolchain: stable
profile: minimal
override: true
components: rustfmt
- uses: Swatinem/rust-cache@v1
- name: Check formatting
run: cargo fmt --all -- --check
clippy:
name: clippy
if: github.repository == '0x727/ObserverWard' && github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.58.1 # MSRV
profile: minimal
override: true
components: clippy
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --workspace --all-features --all-targets -- -D warnings --allow deprecated