Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

feat | fix :chat interface finished and fix the cycle package problem… #15

feat | fix :chat interface finished and fix the cycle package problem…

feat | fix :chat interface finished and fix the cycle package problem… #15

Workflow file for this run

name: Interface Test
on:
push:
branches:
- main
pull_request:
breanches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
service: [user]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up golang
uses: actions/setup-go@v4
with:
go-version: '1.20.x'
- name: Install dependencies
run: go mod tidy
- name: Build target
run: make ${{ matrix.service }}
- name: Archive production
uses: actions/upload-artifact@v3
with:
name: build-output-all
path: output
run-test:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
service: [user]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: go mod tidy
- name: Download production
uses: actions/download-artifact@v3
with:
name: build-output-all
- name: Set up environment
uses: isbang/compose-action@v1.5.1
with:
compose-file: "./docker-compose.ci.yml"
- name: Run local server
run: nohup sh ./output/${{ matrix.service }}/bootstrap.sh > nohup.out 2> nohup.err < /dev/null &
- name: Test interfaces
run: go test -v --cover ./test/${{ matrix.service }}/...