Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty PR - Trigger CI test #59

Closed
wants to merge 6 commits into from
Closed
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
50 changes: 7 additions & 43 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
api-tests:
name: "API tests"
name: "Compilation Tests"
timeout-minutes: 30
runs-on: ubuntu-latest
container:
Expand Down Expand Up @@ -46,50 +46,14 @@ jobs:
- name: Build Contracts
run: make build

- name: Clean up disk space
run: |
apt-get clean
rm -rf /var/log/*.log
df -h

- name: Compilation
run: |
cd testing
rustup target add wasm32-unknown-unknown
cargo build

- name: Test-Account
run: cd testing && cargo test account -- --nocapture

- name: Test-Address
run: cd testing && cargo test address -- --nocapture

- name: Test-Send
run: cd testing && cargo test send_test -- --nocapture

- name: Test-BigInts
run: cd testing && cargo test bigints_test -- --nocapture

- name: Test-Leb128
run: cd testing && cargo test leb128 -- --nocapture

- name: Test-Deserialize
run: cd testing && cargo test deserialize_params_tests -- --nocapture

- name: Test-MarketCbor
run: cd testing && cargo test market_cbor_tests -- --nocapture

- name: Test-CborDecode
run: cd testing && cargo test cbor_decode_test -- --nocapture

- name: Test-FRC0042
run: cd testing && cargo run --example methodnum

- name: Test-VerifReg
run: cd testing && cargo test verifreg_test -- --nocapture

- name: Test-Power
run: cd testing && cargo test power_test -- --nocapture

- name: Test-Miner
run: cd testing && cargo test miner_test -- --nocapture

- name: Test-Market
run: cd testing && cargo test market_test -- --nocapture

- name: Test-SolcVersions
run: chmod +x ./testing/smoke_tests.sh && ./testing/smoke_tests.sh
89 changes: 89 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: "Main"
on:
pull_request:
branches:
- master

jobs:
api-tests:
name: "API tests"
timeout-minutes: 30
runs-on: ubuntu-latest
container:
image: golang:1.21.7-bullseye

steps:
- name: Install node
uses: actions/setup-node@v2
with:
node-version: "20.0.0"

- name: Install yarn
run: npm install -g yarn

- name: Checkout repo
uses: actions/checkout@main
with:
submodules: "true"

- name: Install other dependencies
run: |
rm /bin/sh && ln -s /bin/bash /bin/sh
cat /etc/os-release
apt-get update
apt-get -y install hwloc jq pkg-config bzr ocl-icd-opencl-dev
apt install zsh -y
make install_solc_linux
yarn install
ls -1 /usr/lib/*/libhwloc.so.* | head -n 1 | xargs -n1 -I {} ln -s {} /usr/lib/libhwloc.so

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true

- name: Build Contracts
run: make build

- name: Test-Account
run: cd testing && cargo test account -- --nocapture

- name: Test-Address
run: cd testing && cargo test address -- --nocapture

- name: Test-Send
run: cd testing && cargo test send_test -- --nocapture

- name: Test-BigInts
run: cd testing && cargo test bigints_test -- --nocapture

- name: Test-Leb128
run: cd testing && cargo test leb128 -- --nocapture

- name: Test-Deserialize
run: cd testing && cargo test deserialize_params_tests -- --nocapture

- name: Test-MarketCbor
run: cd testing && cargo test market_cbor_tests -- --nocapture

- name: Test-CborDecode
run: cd testing && cargo test cbor_decode_test -- --nocapture

- name: Test-FRC0042
run: cd testing && cargo run --example methodnum

- name: Test-VerifReg
run: cd testing && cargo test verifreg_test -- --nocapture

- name: Test-Power
run: cd testing && cargo test power_test -- --nocapture

- name: Test-Miner
run: cd testing && cargo test miner_test -- --nocapture

- name: Test-Market
run: cd testing && cargo test market_test -- --nocapture

- name: Test-SolcVersions
run: chmod +x ./testing/smoke_tests.sh && ./testing/smoke_tests.sh
Loading