mirror of https://github.com/boa-dev/boa.git
Jason Williams
5 years ago
committed by
GitHub
3 changed files with 64 additions and 24 deletions
@ -1,12 +1,15 @@ |
|||||||
on: [pull_request] |
on: [pull_request] |
||||||
name: benchmark pull requests |
name: Benchmarks |
||||||
jobs: |
jobs: |
||||||
runBenchmark: |
runBenchmark: |
||||||
name: run benchmark |
name: run benchmark |
||||||
runs-on: ubuntu-latest |
runs-on: ubuntu-latest |
||||||
steps: |
steps: |
||||||
- uses: actions/checkout@master |
- uses: actions/checkout@master |
||||||
- name: run benchmark |
- uses: actions-rs/toolchain@v1 |
||||||
uses: jasonwilliams/criterion-compare-action@comment_pr |
with: |
||||||
env: |
toolchain: stable |
||||||
|
override: true |
||||||
|
- uses: jasonwilliams/criterion-compare-action@move_to_actions |
||||||
|
with: |
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
||||||
|
@ -1,18 +1,66 @@ |
|||||||
name: Rust |
|
||||||
|
|
||||||
on: |
on: |
||||||
|
pull_request: |
||||||
|
branches: |
||||||
|
- master |
||||||
push: |
push: |
||||||
branches: |
branches: |
||||||
- master |
- master |
||||||
|
|
||||||
|
name: Continuous integration |
||||||
|
|
||||||
jobs: |
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 |
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: |
steps: |
||||||
- uses: actions/checkout@v1 |
- uses: actions/checkout@v1 |
||||||
- name: Build |
- uses: actions-rs/toolchain@v1 |
||||||
run: cargo build --verbose |
with: |
||||||
- name: Run tests |
toolchain: stable |
||||||
run: cargo test --verbose |
override: true |
||||||
|
- run: rustup component add clippy |
||||||
|
- uses: actions-rs/cargo@v1 |
||||||
|
with: |
||||||
|
command: clippy |
||||||
|
args: -- --verbose |
||||||
|
Loading…
Reference in new issue