-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update CI * FAILURE * Revert "FAILURE" This reverts commit a3b0828. * Docs * Clippy * Cache jobs separately * Clippy fixes * Add protoc back to ci jobs * Fix docs * Last clippy fix * Speed up Free Space * Optimize CI * Turn on the rest of the jobs
- Loading branch information
1 parent
d5e5a49
commit e726255
Showing
32 changed files
with
230 additions
and
362 deletions.
There are no files selected for viewing
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,152 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
fmt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo hello world' | ||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Run static analysis tests | ||
shell: bash | ||
run: cargo fmt --all --check | ||
|
||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Run doc tests | ||
run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features --document-private-items -p avalanche-consensus -p avalanche-types | ||
|
||
clippy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Install protoc | ||
uses: arduino/setup-protoc@v1 | ||
with: | ||
version: '3.x' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Run static analysis tests | ||
shell: bash | ||
run: cargo clippy --all --all-features --tests --benches --examples -- -D warnings | ||
|
||
unit: | ||
name: unit tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Free Disk Space (Ubuntu) | ||
uses: jlumbroso/free-disk-space@main | ||
with: | ||
large-packages: false | ||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Install protoc | ||
uses: arduino/setup-protoc@v1 | ||
with: | ||
version: '3.x' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Run unit tests | ||
run: cargo test --all-features -p avalanche-types -p avalanche-consensus | ||
|
||
avalanchego-integration-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Free Disk Space (Ubuntu) | ||
uses: jlumbroso/free-disk-space@main | ||
with: | ||
large-packages: false | ||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Install protoc | ||
uses: arduino/setup-protoc@v1 | ||
with: | ||
version: '3.x' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.19' | ||
- name: Run e2e tests | ||
run: scripts/tests.avalanchego-e2e.sh | ||
|
||
avalanchego-conformance-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Free Disk Space (Ubuntu) | ||
uses: jlumbroso/free-disk-space@main | ||
with: | ||
large-packages: false | ||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Install protoc | ||
uses: arduino/setup-protoc@v1 | ||
with: | ||
version: '3.x' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.19' | ||
- name: Run e2e tests | ||
run: scripts/tests.avalanchego-conformance.sh | ||
|
||
avalanchego-byzantine-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Free Disk Space (Ubuntu) | ||
uses: jlumbroso/free-disk-space@main | ||
with: | ||
large-packages: false | ||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Install protoc | ||
uses: arduino/setup-protoc@v1 | ||
with: | ||
version: '3.x' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.19' | ||
- name: Run e2e tests | ||
run: scripts/tests.avalanchego-byzantine.sh |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.