Skip to content
Snippets Groups Projects
Unverified Commit 51c9fbc4 authored by Xiliang Chen's avatar Xiliang Chen Committed by GitHub
Browse files

Merge pull request #2 from laminar-protocol/workflow

add test workflow
parents 434defab 8f3df032
No related branches found
No related tags found
No related merge requests found
name: Test
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2019-08-19
components: rustfmt
target: wasm32-unknown-unknown
default: true
- name: Check format
run: cargo +stable fmt --all -- --check
- name: Check with no_std
run: make check
- name: Build
run: cargo build --locked
- name: Run tests
run: cargo test --all
......@@ -6,7 +6,7 @@ REPO_ROOT_DIR="$(git rev-parse --show-toplevel)"
files=$((git diff --cached --name-only --diff-filter=ACMR | grep -Ei "\.rs$") || true)
if [ ! -z "${files}" ]; then
cargo fmt --all
cargo +stable fmt --all
git add $(echo "$files" | paste -s -d " " -)
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment