Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
name: Audit
name: audit

on:
schedule:
- cron: '0 0 * * *'
push:

jobs:
Audit:
runs-on: windows-latest
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Cache target
id: cache-target
uses: actions/cache@v1
with:
path: target
key: ${{ runner.os }}-audit-target-${{ hashFiles('**/Cargo.toml') }}
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
84 changes: 41 additions & 43 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,46 @@
name: Test
name: test

on:
push:

jobs:
Mac:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: -- --nocapture
env:
RUSTFLAGS: "--deny=warnings"

Windows:
runs-on: windows-latest
jobs:
test:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
rust: [stable, nightly]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
- uses: actions/checkout@v1
- name: Cache target
id: cache-target
uses: actions/cache@v1
with:
toolchain: stable
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: -- --nocapture

Ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
path: target
key: ${{ runner.os }}-${{ matrix.rust }}-test-target-${{ hashFiles('**/Cargo.toml') }}
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: ${{ matrix.rust }}
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: -- --nocapture

Clippy:
clippy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- uses: actions/checkout@v1
- name: Cache target
id: cache-target
uses: actions/cache@v1
with:
path: target
key: ${{ runner.os }}-clippy-target-${{ hashFiles('**/Cargo.toml') }}
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -63,11 +50,16 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

Format:
format:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- uses: actions/checkout@v1
- name: Cache target
id: cache-target
uses: actions/cache@v1
with:
path: target
key: ${{ runner.os }}-format-target-${{ hashFiles('**/Cargo.toml') }}
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -78,10 +70,16 @@ jobs:
command: fmt
args: -- --check

Coverage:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Cache target
id: cache-target
uses: actions/cache@v1
with:
path: target
key: ${{ runner.os }}-coverage-target-${{ hashFiles('**/Cargo.toml') }}
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
Expand All @@ -101,4 +99,4 @@ jobs:
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: /tmp/lcov.info
path-to-lcov: /tmp/lcov.info