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

Wake up #376

Merged
merged 12 commits into from
Jul 15, 2021
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
25 changes: 0 additions & 25 deletions .github/workflows/build.yml

This file was deleted.

73 changes: 73 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# This is a basic workflow to help you get started with Actions
name: publish solidity package

# Controls when the action will run.
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
commitMessage:
description: 'commit message'
required: true
default: 'update tokens and publish it'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
persist-credentials: false
- uses: actions/setup-node@v2
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2021-06-01
components: rustfmt
target: wasm32-unknown-unknown
default: true
- name: publish solidity package
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
set -x
echo running on branch ${GITHUB_REF##*/}
git config --global user.name "Github Actions"
git config --global user.email "Github Actions"
cd predeploy-contracts
git checkout master
git pull
cd ..
make generate-tokens
cd predeploy-contracts
if [ -z "$(git status --porcelain)" ]
then
echo "nothing to update."
else
git commit -am "${{ github.event.inputs.commitMessage }}"
fi
cd ..
cd predeploy-contracts/contracts
yarn run prepare
yarn version --patch
new_version=$(yarn versions --json | jq -er '.data."@setheum-labs/contracts"')
git push "https://${{ secrets.GH_PAT }}@github.com/Setheum-Labs/predeploy-contracts.git" HEAD:master
yarn publish --new-version=$new_version --access=public
cd ../..
git commit -am "${{ github.event.inputs.commitMessage }}"
if [ ${GITHUB_REF##*/} -eq "master" ]
then
branch="update-predeploy-contracts-$(date "+%Y%m%d%H%M%y")"
git checkout -b "$branch"
git push -u "https://${{ secrets.GH_PAT }}@github.com/Setheum-Labs/Setheum.git" "$branch"
hub pull-request -m "${{ github.event.inputs.commitMessage }}"
else
git push "https://${{ secrets.GH_PAT }}@github.com/Setheum-Labs/Setheum.git" HEAD:${GITHUB_REF##*/}
fi
28 changes: 22 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: Test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
branches:
- master
push:
branches:
- master

jobs:
build:
Expand All @@ -17,13 +19,27 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2021-03-15
toolchain: nightly-2021-06-01
components: rustfmt
target: wasm32-unknown-unknown
default: true
- name: Check format
run: cargo fmt --all -- --check
- name: Build
run: make build-all
- name: Run tests
run: make test-all
- name: Install clippy
run: rustup component add clippy
- name: Run newrome-runtime clippy
run: cargo clippy --features with-newrome-runtime -- -D warnings
- name: Run neom-runtime clippy
run: cargo clippy --features with-neom-runtime -- -D warnings
- name: Run setheum-runtime clippy
run: cargo clippy --features with-setheum-runtime -- -D warnings
- name: Run runtime tests
run: make test-runtimes
- name: Run sevm tests
run: make test-sevm
- name: Run benchmarking tests
run: make test-benchmarking
- name: Check benchmarks
run: make check-benchmarks
16 changes: 16 additions & 0 deletions .github/workflows/verify-bootnotes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# name: Verify bootnotes

# on:
# schedule:
# - cron: "00 04 * * 1" # 4AM weekly on monday

# jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# with:
# submodules: recursive
# - name: verify bootnotes
# run: |
# ./scripts/verify-bootnodes.sh neom
7 changes: 0 additions & 7 deletions .vscode/settings.json

This file was deleted.

45 changes: 0 additions & 45 deletions .vscode/tasks.json

This file was deleted.

Loading