This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
ce88dc8
commit 093ac07
Showing
1 changed file
with
25 additions
and
21 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 |
---|---|---|
|
@@ -2,37 +2,41 @@ name: Test and Check | |
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
paths-ignore: | ||
- "README.md" | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
concurrency: | ||
group: clippy-${{ github.ref }} | ||
cancel-in-progress: true | ||
group: test-${{ github.ref }} | ||
cancel-in-progress: true | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Install toolchain | ||
id: toolchain | ||
uses: actions-rs/toolchain@master | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
target: wasm32-unknown-unknown | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install toolchain | ||
id: toolchain | ||
uses: actions-rs/toolchain@master | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
target: wasm32-unknown-unknown | ||
|
||
- name: Install protobuf-compiler | ||
run: sudo apt-get install protobuf-compiler | ||
- name: Install protobuf-compiler | ||
run: sudo apt-get install protobuf-compiler | ||
|
||
- name: Rust Cache | ||
uses: Swatinem/[email protected] | ||
- name: Rust Cache | ||
uses: Swatinem/[email protected] | ||
|
||
- name: Test workspace | ||
run: cargo test --package pallet-eth2-light-client | ||
- name: Test workspace | ||
run: cargo test --package pallet-eth2-light-client | ||
|
||
rustfmt: | ||
concurrency: | ||
|
@@ -69,7 +73,7 @@ jobs: | |
|
||
- name: Rust Cache | ||
uses: Swatinem/[email protected] | ||
|
||
- name: Install Protobuf | ||
run: sudo apt-get install protobuf-compiler | ||
|
||
|