-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add e2e test to workflow (#263) * feat: e2e test is added to action * chore: change workflow naming * fix: fix payment apis nil pointer error (#264) * fix: fix sa iam type to access s3 (#265) Co-authored-by: DylanYong <[email protected]> * feat: update buckets/objects order (#270) feat: update buckets/objects order * fix: upgrade juno version with property length fix (#273) * docs: update license (#282) Co-authored-by: Keefe Liu <[email protected]> * fix: merge error * docs: add changelog for v0.1.0 --------- Co-authored-by: BarryTong65 <[email protected]> Co-authored-by: will-2012 <[email protected]> Co-authored-by: VM <[email protected]> Co-authored-by: DylanYong <[email protected]> Co-authored-by: krish-nr <[email protected]> Co-authored-by: krish-z <[email protected]> Co-authored-by: constwz <[email protected]> Co-authored-by: dylanhuang <[email protected]> Co-authored-by: will-2012 <[email protected]> Co-authored-by: constwz <[email protected]> Co-authored-by: BarryTong65 <[email protected]> Co-authored-by: KeefeL <[email protected]> Co-authored-by: Keefe Liu <[email protected]>
- Loading branch information
1 parent
367579b
commit dad851c
Showing
231 changed files
with
21,552 additions
and
238 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
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,93 @@ | ||
name: E2E Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
- release* | ||
|
||
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
- release* | ||
|
||
env: | ||
GreenfileldTag: v0.0.10 | ||
GreenfileldIntegrationTestBranch: gnfd-sp | ||
GOPRIVATE: github.com/bnb-chain | ||
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} | ||
MYSQL_USER: root | ||
MYSQL_PASSWORD: root | ||
MYSQL_ROOT_PASSWORD: root | ||
|
||
jobs: | ||
e2e-test: | ||
strategy: | ||
matrix: | ||
go-version: [ 1.18.x ] | ||
os: [ ubuntu-latest ] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: Setup GitHub Token | ||
run: git config --global url.https://[email protected]/.insteadOf https://github.com/ | ||
# Checkout Greenfield-SP | ||
- name: Checkout Greenfield-SP | ||
uses: actions/checkout@v3 | ||
# Build Greenfield-SP | ||
- name: Build Greenfield-SP | ||
run: | | ||
make install-tools | ||
make build | ||
# Build Greenfield | ||
- name: Build Greenfield | ||
run: | | ||
git clone https://github.com/bnb-chain/greenfield.git | ||
cd greenfield | ||
git checkout ${{ env.GreenfileldTag }} | ||
make proto-gen & make build | ||
cd .. | ||
# Run MySQL | ||
- name: Run MySQL | ||
run: | | ||
sudo /etc/init.d/mysql start | ||
mysql -h 127.0.0.1 -P 3306 -u${{ env.MYSQL_USER }} -p${{ env.MYSQL_PASSWORD }} -e 'CREATE DATABASE sp_0; CREATE DATABASE sp_1;CREATE DATABASE sp_2; CREATE DATABASE sp_3;CREATE DATABASE sp_4; CREATE DATABASE sp_5; CREATE DATABASE sp_6;' | ||
# Run Greenfield | ||
- name: Run Greenfield | ||
run: | | ||
/bin/cp -rf test/e2e/localup_env/greenfield_env greenfield/deployment/localup/.local | ||
cd greenfield | ||
bash ./deployment/localup/localup.sh start 1 | ||
cd .. | ||
# Run Greenfield-SP | ||
- name: Run Greenfield-SPs | ||
run: | | ||
/bin/cp -rf test/e2e/localup_env/greenfield_sp_env deployment/localup/local_env | ||
/bin/cp build/gnfd-sp deployment/localup/local_env/sp0/gnfd-sp0 | ||
/bin/cp build/gnfd-sp deployment/localup/local_env/sp1/gnfd-sp1 | ||
/bin/cp build/gnfd-sp deployment/localup/local_env/sp2/gnfd-sp2 | ||
/bin/cp build/gnfd-sp deployment/localup/local_env/sp3/gnfd-sp3 | ||
/bin/cp build/gnfd-sp deployment/localup/local_env/sp4/gnfd-sp4 | ||
/bin/cp build/gnfd-sp deployment/localup/local_env/sp5/gnfd-sp5 | ||
/bin/cp build/gnfd-sp deployment/localup/local_env/sp6/gnfd-sp6 | ||
bash ./deployment/localup/localup.sh --start | ||
sleep 5 | ||
tail -n 1000 deployment/localup/local_env/sp0/gnfd-sp.log | ||
ps -ef | grep gnfd-sp | wc -l | ||
# Run E2E Test | ||
- name: Run Greenfield E2E Test | ||
run: | | ||
git clone https://github.com/bnb-chain/greenfield-integration-test.git | ||
cd greenfield-integration-test | ||
git checkout ${{ env.GreenfileldIntegrationTestBranch }} | ||
cd .. | ||
/bin/cp -rf test/e2e/localup_env/integration_config/config.yml greenfield-integration-test/config/config.yml | ||
cd greenfield-integration-test | ||
go test tests/create_object_test.go | ||
cd .. |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: gosec | ||
name: Gosec | ||
|
||
on: | ||
push: | ||
|
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
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
Oops, something went wrong.