-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
130 additions
and
22 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,43 @@ | ||
name: Lint | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
test: | ||
name: Lint | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cache Cargo registry | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cargo/registry | ||
key: ${{ matrix.build }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ matrix.build }}-cargo-registry- | ||
- name: Cache Cargo index | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cargo/git | ||
key: ${{ matrix.build }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ matrix.build }}-cargo-index- | ||
- name: Cache Cargo build | ||
uses: actions/cache@v1 | ||
with: | ||
path: target | ||
key: ${{ matrix.build }}-target-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ matrix.build }}-target- | ||
- name: Install Rust | ||
run: | | ||
rustup update ${{ matrix.rust }} --no-self-update | ||
rustup component add clippy | ||
rustup default ${{ matrix.rust }} | ||
- name: Run Lint | ||
run: cargo clippy --verbose --tests --benches -- -D clippy::all | ||
env: | ||
RUST_BACKTRACE: 1 |
This file was deleted.
Oops, something went wrong.
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,52 @@ | ||
name: Tests | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
|
||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
build: [ linux-stable, macos-stable ] | ||
include: | ||
- build: linux-stable | ||
os: ubuntu-latest | ||
rust: stable | ||
- build: macos-stable | ||
os: macos-latest | ||
rust: stable | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cache Cargo registry | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cargo/registry | ||
key: ${{ matrix.build }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ matrix.build }}-cargo-registry- | ||
- name: Cache Cargo index | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cargo/git | ||
key: ${{ matrix.build }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ matrix.build }}-cargo-index- | ||
- name: Cache Cargo build | ||
uses: actions/cache@v1 | ||
with: | ||
path: target | ||
key: ${{ matrix.build }}-target-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ matrix.build }}-target- | ||
- name: Install Rust | ||
run: | | ||
rustup update ${{ matrix.rust }} --no-self-update | ||
rustup default ${{ matrix.rust }} | ||
- name: Run Tests | ||
run: cargo test --all-features | ||
env: | ||
RUST_BACKTRACE: 1 |
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,34 @@ | ||
pull_request_rules: | ||
- name: Automatic merge | ||
conditions: | ||
- "#approved-reviews-by>=1" | ||
- "#changes-requested-reviews-by=0" | ||
- "-conflict" | ||
- "-draft" | ||
- status-success=conventional-pr-title | ||
- "#status-success>=1" | ||
- "#status-failure=0" | ||
- base=master | ||
- label=automerge-squash | ||
actions: | ||
merge: | ||
method: squash | ||
strict: smart | ||
commit_message: title+body | ||
delete_head_branch: {} | ||
|
||
- name: Clean up automerge tags | ||
conditions: | ||
- closed | ||
actions: | ||
label: | ||
remove: | ||
- automerge-squash | ||
|
||
- name: Auto-approve auto-PRs | ||
conditions: | ||
- author=dfinity-bot | ||
actions: | ||
review: | ||
type: APPROVE | ||
message: This bot trusts that bot |
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
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