Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 0 additions & 87 deletions .github/workflows/runtime-tests.yml

This file was deleted.

59 changes: 59 additions & 0 deletions .github/workflows/unit-tests-suite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
name: Unit tests

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: false

env:
CARGO_TERM_COLOR: always

jobs:
unit-test-suite:

runs-on: ubuntu-latest

steps:

- name: Install protoc compiler
shell: bash
run: |
sudo apt-get install -y protobuf-compiler

- name: Checkout Source code
uses: actions/checkout@v3

- name: Cache cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Install Rust toolchain
uses: Cardinal-Cryptography/github-actions/install-rust-toolchain@v1

- name: Run fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all

- name: Run clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- --no-deps -D warnings

- name: Run tests
run: cargo test --verbose
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Academy PoW

![Unit Tests](https://github.com/Polkadot-Blockchain-Academy/Academy-PoW/workflows/unit-tests-suite.yml/badge.svg)

This repo houses a Proof of Work based blockchain node for use in the Polkadot Blockchain Academy. It happens to be based on Substrate, but no Substrate knowledge is required.

## Connecting the UI
Expand All @@ -21,4 +23,4 @@ In the left panel of the UI, switch to the `Local Node` endpoint.

## More Help

This code will be used primarily as an in-class activity that is instructor led, so just wait for details in class.
This code will be used primarily as an in-class activity that is instructor led, so just wait for details in class.
4 changes: 2 additions & 2 deletions node/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
fn main() {
substrate_build_script_utils::generate_cargo_keys();
substrate_build_script_utils::rerun_if_git_head_changed();
substrate_build_script_utils::generate_cargo_keys();
substrate_build_script_utils::rerun_if_git_head_changed();
}
Loading