Skip to content

added the websocket #12

added the websocket

added the websocket #12

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