Skip to content

Commit

Permalink
Merge pull request #39 from METADIUM/dev
Browse files Browse the repository at this point in the history
Gmet m0.10.0.testnet to master
  • Loading branch information
cp-khs committed Sep 13, 2023
2 parents 1b6a799 + bbe99d6 commit f9ce148
Show file tree
Hide file tree
Showing 660 changed files with 151,371 additions and 26,229 deletions.
41 changes: 21 additions & 20 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
# Lines starting with '#' are comments.
# Each line is a file pattern followed by one or more owners.

# accounts/usbwallet @karalabe
# accounts/scwallet @gballet
# accounts/abi @gballet @MariusVanDerWijden
# cmd/clef @holiman
# cmd/puppeth @karalabe
# consensus @karalabe
# core/ @karalabe @holiman @rjl493456442
# eth/ @karalabe @holiman @rjl493456442
# eth/catalyst/ @gballet
# graphql/ @gballet
# les/ @zsfelfoldi @rjl493456442
# light/ @zsfelfoldi @rjl493456442
# mobile/ @karalabe @ligi
# node/ @fjl @renaynay
# p2p/ @fjl @zsfelfoldi
# rpc/ @fjl @holiman
# p2p/simulations @fjl
# p2p/protocols @fjl
# p2p/testing @fjl
# signer/ @holiman
accounts/usbwallet @karalabe
accounts/scwallet @gballet
accounts/abi @gballet @MariusVanDerWijden
cmd/clef @holiman
cmd/puppeth @karalabe
consensus @karalabe
core/ @karalabe @holiman @rjl493456442
eth/ @karalabe @holiman @rjl493456442
eth/catalyst/ @gballet
eth/tracers/ @s1na
graphql/ @gballet @s1na
les/ @zsfelfoldi @rjl493456442
light/ @zsfelfoldi @rjl493456442
mobile/ @karalabe @ligi
node/ @fjl
p2p/ @fjl @zsfelfoldi
rpc/ @fjl @holiman
p2p/simulations @fjl
p2p/protocols @fjl
p2p/testing @fjl
signer/ @holiman
60 changes: 60 additions & 0 deletions .github/workflows/dev-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: dev-ci

on:
pull_request:
branches:
- dev

jobs:
build_test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Build Go-MetadiumX
run: make metadium
- name: Check Build
run: ls -al build/metadium.tar.gz

lint_test:
strategy:
fail-fast: false
matrix:
version: [1.17, 1.18, 1.19]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.version }}

- name: Check Lint
run: make lint

unit_test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Check golang Test Cases
run: |
unset ANDROID_HOME
make test-short
59 changes: 59 additions & 0 deletions .github/workflows/dev-cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: dev-cron

on:
schedule:
- cron: '0 0 * * *'

jobs:
build_test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: dev

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Build Go-Metadium
run: make metadium
- name: Check Build
run: ls -al build/metadium.tar.gz

lint_test:
strategy:
fail-fast: false
matrix:
version: [1.17, 1.18, 1.19]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: dev

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.version }}

- name: Check Lint
run: make lint

unit_test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: dev

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Check golang Test Cases
run: |
unset ANDROID_HOME
make test
60 changes: 60 additions & 0 deletions .github/workflows/master-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: master-ci

on:
pull_request:
branches:
- master

jobs:
build_test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Build Go-Metadium
run: make metadium
- name: Check Build
run: ls -al build/metadium.tar.gz

lint_test:
strategy:
fail-fast: false
matrix:
version: [1.17, 1.18, 1.19]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.version }}

- name: Check Lint
run: make lint

unit_test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Check golang Test Cases
run: |
unset ANDROID_HOME
make test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ vendor/*
# Metadium
/metadium/admin_abi.go
/metadium/governance_abi.go
/metadium/governance_legacy_abi.go
6 changes: 4 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ run:
skip-dirs-use-default: true
skip-files:
- core/genesis_alloc.go
- metadium/contracts/MetadiumGovernance.js
- metadium/governance_abi.go

linters:
disable-all: true
enable:
- deadcode
# - deadcode
- goconst
- goimports
- gosimple
Expand All @@ -22,7 +24,7 @@ linters:
# - staticcheck
- unconvert
# - unused
- varcheck
# - varcheck

linters-settings:
gofmt:
Expand Down
Loading

0 comments on commit f9ce148

Please sign in to comment.