Skip to content

Commit

Permalink
fixing PR benchmarks (#132)
Browse files Browse the repository at this point in the history
* fixing PR benchmarks
  • Loading branch information
jasonwilliams authored Oct 4, 2019
1 parent d798566 commit 5df3476
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 24 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
on: [pull_request]
name: benchmark pull requests
name: Benchmarks
jobs:
runBenchmark:
name: run benchmark
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: run benchmark
uses: jasonwilliams/criterion-compare-action@comment_pr
env:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: jasonwilliams/criterion-compare-action@move_to_actions
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66 changes: 57 additions & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,66 @@
name: Rust

on:
pull_request:
branches:
- master
push:
branches:
- master
- master

name: Continuous integration

jobs:
build:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check

test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test

fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- --verbose
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

0 comments on commit 5df3476

Please sign in to comment.