Finalization of the Backend #46
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: CI | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
build: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.21' | |
- name: Run unit tests | |
run: go test ./... | |
- name: Build Docker Image using build.sh | |
run: | | |
chmod +x ./testdata/docker/build.sh | |
./testdata/docker/build.sh | |
- name: Run quickstart.sh script | |
run: | | |
chmod +x ./quickstart.sh | |
./quickstart.sh standalone & | |
- name: Wait for local chain setup | |
run: sleep 25 | |
- name: Run integration tests | |
run: go test -tags=integration ./... |