Skip to content

Commit

Permalink
release: v0.1.0 for test net (#284)
Browse files Browse the repository at this point in the history
* 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
14 people authored Apr 6, 2023
1 parent 367579b commit dad851c
Show file tree
Hide file tree
Showing 231 changed files with 21,552 additions and 238 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/commit-lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint Commit Messages
name: Branch and Commit Lint

on:
push:
Expand All @@ -14,7 +14,7 @@ on:
- release*

jobs:
commit-lint:
commit-message-lint:
strategy:
matrix:
node-version: [14.x]
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
with:
configFile: /github/workspace/.github/commitlint.config.js

branch-naming-rules:
branch-naming-lint:
strategy:
matrix:
os: [ ubuntu-latest ]
Expand Down
93 changes: 93 additions & 0 deletions .github/workflows/e2e-test.yml
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 ..
2 changes: 1 addition & 1 deletion .github/workflows/gosec.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: gosec
name: Gosec

on:
push:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
restore-keys: |
${{ runner.os }}-go-
- name: Setup GitHub Token
run: git config --global url.https://${{ secrets.GH_ACCESS_SECRET }}@github.com/.insteadOf https://github.com/
run: git config --global url.https://${{ secrets.GH_ACCESS_TOKEN }}@github.com/.insteadOf https://github.com/
- name: Checkout code
uses: actions/checkout@v3

Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
- name: Create Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_SECRET }} # This token is provided by Actions, you do not need to create your own token
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ env.RELEASE_VERSION}}
release_name: ${{ env.RELEASE_VERSION}}
Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## v0.1.0

BUGFIX
* [\#258](https://github.com/bnb-chain/greenfield-storage-provider/pull/258) fix put object verify permission bug
* [\#264](https://github.com/bnb-chain/greenfield-storage-provider/pull/264) fix: fix payment apis nil pointer error
* [\#265](https://github.com/bnb-chain/greenfield-storage-provider/pull/265) fix: fix sa iam type to access s3
* [\#268](https://github.com/bnb-chain/greenfield-storage-provider/pull/268) feat: update buckets/objects order
* [\#270](https://github.com/bnb-chain/greenfield-storage-provider/pull/270) feat: update buckets/objects order
* [\#272](https://github.com/bnb-chain/greenfield-storage-provider/pull/272) fix: upgrade juno version for a property length fix

BUILD
* [\#259](https://github.com/bnb-chain/greenfield-storage-provider/pull/259) ci: fix release.yml uncorrect env var name
* [\#263](https://github.com/bnb-chain/greenfield-storage-provider/pull/263) feat: add e2e test to workflow


## v0.0.5

FEATURES
Expand Down
Loading

0 comments on commit dad851c

Please sign in to comment.