-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
4,129 additions
and
12,993 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Ubuntu C++ Tests | ||
on: [push] | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Install Yarn dependencies and build | ||
run: | | ||
yarn | ||
yarn build | ||
- name: Start Hardhat node in background | ||
run: | | ||
yarn hardhat-node & | ||
echo "NODE_PID=$!" >> $GITHUB_ENV | ||
- name: Install prerequisites for C++ build | ||
run: sudo apt-get update && sudo apt-get install -y cmake build-essential libboost-all-dev libssl-dev libcurl4-openssl-dev libsodium-dev | ||
|
||
- name: Create and change into Build Directory | ||
run: mkdir -p test/cpp/build | ||
|
||
- name: CMake Generate | ||
working-directory: ./test/cpp/build | ||
run: cmake -B. -H.. --debug-output | ||
|
||
- name: Compile | ||
working-directory: ./test/cpp/build | ||
run: cmake --build . | ||
|
||
- name: Run C++ tests | ||
working-directory: ./test/cpp/build | ||
run: ctest -VV --repeat until-pass:2 --test-dir . | ||
|
||
- name: Kill Yarn node | ||
run: kill $NODE_PID | ||
if: always() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Ubuntu Hardhat Tests | ||
on: [push] | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
- uses: actions/cache@v2 | ||
with: | ||
path: "**/node_modules" | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
- run: yarn | ||
- run: yarn build | ||
- run: yarn test |
Oops, something went wrong.