feat: add index to permission table and add piece store no such key error as 404 code #2773
Workflow file for this run
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
name: SP Exit E2E Test | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
- fix-release* | |
pull_request: | |
branches: | |
jobs: | |
e2e-test: | |
strategy: | |
matrix: | |
go-version: [ 1.20.x ] | |
os: [ ubuntu-latest ] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
# Checkout Greenfield-SP | |
- name: Checkout Greenfield-SP | |
uses: actions/checkout@v3 | |
# Run MySQL | |
- name: Run MySQL | |
run: | | |
sudo /etc/init.d/mysql start | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14.x' | |
- name: Install dependencies | |
run: npm install ethers | |
# generate test private key | |
- name: Generate private key | |
run: node ./.github/workflows/generate-private-key.js | |
id: generate-private-key | |
- name: set private key and account address as job variables | |
run: | | |
echo "Private key: ${{ steps.generate-private-key.outputs.private_key }}" | |
echo "Account address: ${{ steps.generate-private-key.outputs.account_address }}" | |
echo "PRIVATE_KEY=${{ steps.generate-private-key.outputs.private_key }}" >> "$GITHUB_ENV" | |
echo "ACCOUNT_ADDR=${{ steps.generate-private-key.outputs.account_address }}" >> "$GITHUB_ENV" | |
# Build and Start Greenfield Blockchain | |
- name: Build and Start Greenfield Blockchain | |
run: | | |
bash ./test/e2e/spworkflow/e2e_test.sh --startChain | |
# # Build and Start Greenfield SP | |
- name: Build and Start Greenfield SP | |
run: | | |
bash ./test/e2e/spworkflow/e2e_test.sh --startSP | |
# Build Greenfield Cmd | |
- name: Build Greenfield Cmd | |
run: | | |
bash ./test/e2e/spworkflow/e2e_test.sh --buildCmd | |
# Use Greenfield Cmd Running SP Exit E2E Test | |
- name: Run Greenfield SP Exit E2E Test | |
run: | | |
bash ./test/e2e/spworkflow/e2e_test.sh --runSPExit |