mirror of
https://github.com/getwax/eip5139.git
synced 2026-01-09 14:57:57 -05:00
First github workflow
This commit is contained in:
41
.github/workflows/test.yaml
vendored
Normal file
41
.github/workflows/test.yaml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
name: ci
|
||||
|
||||
env:
|
||||
RUSTFLAGS: -D warnings
|
||||
|
||||
jobs:
|
||||
check:
|
||||
name: Check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: dtolnay/rust-toolchain@1.60.0
|
||||
- run: cargo check --all --all-features
|
||||
|
||||
test:
|
||||
name: Test Suite
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: dtolnay/rust-toolchain@1.60.0
|
||||
- run: cargo install wasm-pack --version 0.10.3
|
||||
- run: cargo test --all --all-features
|
||||
- run: wasm-pack test --node --all
|
||||
|
||||
fmt:
|
||||
name: Rust Lints
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: dtolnay/rust-toolchain@1.60.0
|
||||
- run: rustup component add rustfmt clippy
|
||||
- run: cargo fmt --all -- --check
|
||||
- run: cargo clippy --all-features -- --deny warnings
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "eip5139"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
rust-version = "1.60"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
||||
Reference in New Issue
Block a user