added the websocket #12
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: Integration Test | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
- '.github/*' | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
- '.github/*' | |
jobs: | |
integration-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.22 # Use the required Go version | |
- name: Install Dependencies | |
run: | | |
go mod tidy | |
go mod download | |
- name: Install Docker Compose | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y docker-compose | |
- name: Set up Docker Compose | |
run: | | |
docker-compose -f docker-compose.yml up -d | |
- name: Run Integration Tests | |
run: | | |
chmod +x ./integration_test.sh | |
./integration_test.sh | |
- name: Stop Docker Compose | |
run: docker-compose -f docker-compose.yml down |