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

Sevey/ci #355

Closed
wants to merge 9 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
22 changes: 22 additions & 0 deletions .github/workflows/validate-genesis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Validate Genesis
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21
- name: Download celestiaorg/celestia-app
run: git clone https://github.com/celestiaorg/celestia-app.git
- name: Install Celestiaorg/celestia-app
run: cd celestia-app && make install
# Validation checks https://github.com/cosmos/cosmos-sdk/blob/bff3104781cca3c409fecfa3efebd80a40eb48c3/x/genutil/types/genesis.go#L53
- name: Validate Genesis
run: celestia-appd validate-genesis /path/t0/genesis-file
163 changes: 163 additions & 0 deletions .github/workflows/validate-validator-github.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
name: Validate GitHub User

on:
pull_request:
# types: [opened]

jobs:
validate_user:
runs-on: ubuntu-latest
permissions:
pull-requests: write
env:
VALIDATOR_LIST: (
"tiagocmachado",
"EdouardLvdl",
"gle1pn1r",
"creeea",
"veeloup",
"trader-payne",
"cryptovestor21",
"activenodes",
"staking4all",
"ilhanu",
"Suleymann85",
"ivandiazperez",
"wainach",
"Cumulo-pro",
"santosdios",
"0x-Fury",
"okannako",
"Ryabina-io",
"Gunter038",
"nodestake",
"GPvalidator",
"y3v63n",
"redref",
"jim-counter",
"travellingsoldier85",
"kooltek68",
"qubelabsio",
"DasRasyo",
"chichi13",
"jmc000",
"JejomStark",
"kj89",
"kjnodes",
"neoprom",
"mkaczanowski",
"RishiSid",
"kooltek68",
"travellingsoldier85",
"clock-workorange",
"kinrokinro",
"evgeny-garanin",
"bonsfi",
"calintatar1",
"krisboit",
"carameleon",
"quantumcore1",
"gaia",
"packetstracer",
"daniel-ck89",
"staked_blaise",
"yash_bhut",
"jmo_oo",
"kennystaked",
"AlexToTheMoon",
"richard-stakingcabin",
"vincent-stakingcabin",
"shivlim",
"BlackBlocks-io",
"WayneWayner",
"rfunduk",
"victorfrancax1",
"jennyhys",
"llPorZall",
"pops-one",
"yelllowsin",
"rooiie",
"stakemepro",
"pciavald",
"Daeinar",
"koenmtb1",
"kobigurk",
"Brightlystake",
"mabalaru",
"dantanasescu",
"imperator-co",
"easy2stake",
"suntzu93",
"spidey-169",
"larry0x",
"AviaOne",
"nodersteam",
"HoytRen",
"Aderks",
"matilote",
"ayushvtf",
"silviu@bwarelabs.com",
"mihai.ciuciu@bwarelabs.com",
"kim201212",
"puneetfinoa",
"aonif",
"bo-everstake",
"upnodedev",
"curlycrypto184",
"JoseCT-HS",
"legg",
"jamescorbett",
"frannovo",
"MilosTodorovic",
"Chainode",
"neulerfzco",
"maxzonder",
"Northa",
"Validatus-com",
"b-harvest",
"dshyionak-bd",
"macunha1",
"JackPMallon",
"fkbenjamin",
"86b",
"SimonKraus",
"ecov773",
"mgl2150",
"sibuser",
"sjors-lemniscap",
"zheli",
)
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get PR author
id: author
run: echo "author=$(jq -r '.pull_request.user.login' $GITHUB_EVENT_PATH)" >> $GITHUB_OUTPUT
# - name: Get validator list
# id: get_validator_list
# run: echo "validator_list=${{ env.VALIDATOR_LIST }}" >> $GITHUB_OUTPUT
# - name: Log Validator env
# run: echo ${{ env.VALIDATOR_LIST }}
# - name: Log Validator list
# run: echo ${{ steps.get_validator_list.outputs.validator_list }}
# - name: Check if user is valid
# id: check_user
# run: echo "valid=${{ contains(fromJson(steps.get_validator_list.outputs.validator_list), steps.author.outputs.author) }}" >> $GITHUB_OUTPUT
- name: Check if user is valid env
id: check_user_env
run: echo "valid=${{ contains(env.VALIDATOR_LIST, steps.author.outputs.author) }}" >> $GITHUB_OUTPUT
- name: Log valid
run: |
echo ${{ steps.check_user_env.outputs.valid }}
- name: Add comment if user is not valid
if: steps.check_user_env.outputs.valid == 'false'
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '@MSevey The PR was submitted by someone not on the GitHub user validator list.'
})
115 changes: 115 additions & 0 deletions .github/workflows/validator_list.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
tiagocmachado
EdouardLvdl
gle1pn1r
creeea
veeloup
trader-payne
cryptovestor21
activenodes
staking4all
ilhanu
Suleymann85
ivandiazperez
wainach
Cumulo-pro
santosdios
0x-Fury
okannako
Ryabina-io
Gunter038
nodestake
GPvalidator
y3v63n
redref
jim-counter
travellingsoldier85
kooltek68
qubelabsio
DasRasyo
chichi13
jmc000
JejomStark
kj89
kjnodes
neoprom
mkaczanowski
RishiSid
kooltek68
travellingsoldier85
clock-workorange
kinrokinro
evgeny-garanin
bonsfi
calintatar1
krisboit
carameleon
quantumcore1
gaia
packetstracer
daniel-ck89
staked_blaise
yash_bhut
jmo_oo
kennystaked
AlexToTheMoon
richard-stakingcabin
vincent-stakingcabin
shivlim
BlackBlocks-io
WayneWayner
rfunduk
victorfrancax1
jennyhys
llPorZall
pops-one
yelllowsin
rooiie
stakemepro
pciavald
Daeinar
koenmtb1
kobigurk
Brightlystake
mabalaru
dantanasescu
imperator-co
easy2stake
suntzu93
spidey-169
larry0x
AviaOne
nodersteam
HoytRen
Aderks
matilote
ayushvtf
silviu@bwarelabs.com
mihai.ciuciu@bwarelabs.com
kim201212
puneetfinoa
aonif
bo-everstake
upnodedev
curlycrypto184
JoseCT-HS
legg
jamescorbett
frannovo
MilosTodorovic
Chainode
neulerfzco
maxzonder
Northa
Validatus-com
b-harvest
dshyionak-bd
macunha1
JackPMallon
fkbenjamin
86b
SimonKraus
ecov773
mgl2150
sibuser
sjors-lemniscap
zheli
Loading