forked from tikv/rust-prometheus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If we're going to keep this around, we should make sure not to break it unnecessarily.
- Loading branch information
1 parent
7aab0f6
commit 64a16e2
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |