Merge pull request #590 from rsksmart/stable-test-sync #725
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: LPS E2E test | |
on: | |
push: | |
branches: [ QA-Test, Stable-Test, master ] | |
pull_request: | |
branches: [ QA-Test, Stable-Test, master ] | |
jobs: | |
e2e-test: | |
name: Server initialization and health check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Set up Go | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version-file: 'go.mod' | |
- name: Update env file | |
run: cd docker-compose/local/ && ./gh-action-env.sh ${{ secrets.GITHUB_TOKEN }} | |
- name: Building LPS environment... | |
run: cd docker-compose/local/ && LPS_STAGE=regtest sh lps-env.sh up | |
- name: Checking LPS health... | |
run: curl -X GET http://localhost:8080/health | |
- name: Shutting LPS environment down... | |
run: cd docker-compose/local/ && LPS_STAGE=regtest sh lps-env.sh down |