diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000000..9410bba617 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,27 @@ +name: Tests + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Submodules + run: git submodule update --init --recursive + - name: Cache Rust dependencies + uses: actions/cache@v1.1.2 + with: + path: target + key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.OS }}-build- + - uses: actions-rs/toolchain@v1 + with: + target: wasm32-unknown-unknown + toolchain: nightly + default: true + - name: Build + run: cargo build --verbose --all + - name: Run tests + run: cargo test --verbose --all diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 17e7328a2b..0000000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,40 +0,0 @@ -image: "rustlang/rust:nightly" - -stages: - - test - - doc - - build - -variables: - CARGO_HOME: $CI_PROJECT_DIR/cargo - APT_CACHE_DIR: $CI_PROJECT_DIR/apt - -before_script: - - apt-get update -yq - - apt-get install -o dir::cache::archives="$APT_CACHE_DIR" -y cmake pkg-config libssl-dev git gcc build-essential clang libclang-dev - - rustup target add wasm32-unknown-unknown - -test: - stage: test - script: - - rustc --version - - cargo --version - - cargo test --verbose - -pages: - stage: doc - script: - - cargo doc --no-deps - - mv target/doc public - - echo '' > public/index.html - artifacts: - paths: - - public - only: - - master - -cache: - paths: - - apt/ - - cargo/ - - target/ diff --git a/README.md b/README.md index d26b1425fe..032f17cba4 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # ![moonbeam](media/moonbeam-cover.jpg) -[![pipeline status](https://gitlab.com/asapede/moonbeam/badges/master/pipeline.svg)](https://gitlab.com/asapede/moonbeam/-/commits/master) - +![Tests](https://github.com/PureStake/moonbeam/workflows/Tests/badge.svg) Run an Ethereum compatible ~~parachain~~ (blockchain for now, until parachains are available) based on Substrate.