First github workflow

This commit is contained in:
Sam Wilson
2022-07-29 12:49:54 -04:00
parent 0aa4862ba5
commit ae06af82a7
2 changed files with 42 additions and 0 deletions

41
.github/workflows/test.yaml vendored Normal file
View 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

View File

@@ -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