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

Feature/bsc integration testing #1960

Closed
wants to merge 3 commits into from
Closed
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
74 changes: 74 additions & 0 deletions .github/workflows/bsc-integration-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: BSC Integration Test

on:
push:
branches:
- feature/bsc-integration-testing

jobs:
compile:
name: BSC Integration Test
runs-on: ubuntu-latest
steps:
- name: Checkout bsc-docker-deploy
uses: actions/checkout@v4
with:
repository: 'bnb-chain/bsc-docker-deploy'
token: ${{ secrets.BSC_INTEGRATION_TEST_GITHUB_TOKEN }}
path: "bsc-docker-deploy"
ref: 'feature/dinamic-entrypoint'
- name: Checkout bsc-genesis-contract
uses: actions/checkout@v4
with:
repository: 'bnb-chain/bsc-genesis-contract'
token: ${{ secrets.BSC_INTEGRATION_TEST_GITHUB_TOKEN }}
path: "bsc-docker-deploy/bsc-genesis-contract"
- name: Checkout node
uses: actions/checkout@v4
with:
repository: 'bnb-chain/node'
token: ${{ secrets.BSC_INTEGRATION_TEST_GITHUB_TOKEN }}
path: "bsc-docker-deploy/node"
- name: Checkout bsc
uses: actions/checkout@v4
with:
repository: 'bnb-chain/bsc'
token: ${{ secrets.BSC_INTEGRATION_TEST_GITHUB_TOKEN }}
path: "bsc-docker-deploy/bsc"
- name: Test
run: |
ls -lah
pwd
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.BSC_INTEGRATION_TEST_GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
context: bsc-docker-deploy/
tags: ghcr.io/bnb-chain/bsc-integration-testing:latest
- name: Checkout bsc-integration-testing
uses: actions/checkout@v4
with:
repository: 'bnb-chain/bsc-integration-testing'
token: ${{ secrets.BSC_INTEGRATION_TEST_GITHUB_TOKEN }}
path: "bsc-integration-testing"
- name: Setup Go 1.21
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Go test with docker containers
uses: bnb-alexlucaci/go-test-docker-run-action@v3
with:
working_directory: ./bsc-integration-testing
username: bnb-alexlucaci
password: ${{ secrets.BSC_INTEGRATION_TEST_GITHUB_TOKEN }}
registry: ghcr.io
run: |
env VOLUME_MOUNT_PATH=${{ github.workspace }}/bsc-integration-testing/foundation/test IMAGE_NAME=ghcr.io/bnb-chain/bsc-integration-testing:latest go test -v ./...
Loading