Skip to content

Commit

Permalink
Add bare-minimum tests (tikv#6)
Browse files Browse the repository at this point in the history
If we're going to keep this around, we should make sure not to break it unnecessarily.
  • Loading branch information
quodlibetor committed Jun 30, 2020
1 parent 7aab0f6 commit 64a16e2
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]

runs-on: ${{ matrix.os }}

env:
RUST_BACKTRACE: 1

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: rustfmt
if: ${{ matrix.os == 'ubuntu-latest' }}
run: cargo fmt -- --color=always --check
- name: Run tests
run: cargo test --color=always -- --color=always
- name: Run tests no-features
run: cargo test --no-default-features --color=always -- --color=always
- name: Run tests process
if: ${{ matrix.os == 'ubuntu-latest' }}
run: cargo test --features process --color=always -- --color=always

0 comments on commit 64a16e2

Please sign in to comment.