fix: fix the hint of algorithm service #246
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
# 1. build temporary image: openv2x/omega:temp | |
# 2. use openv2x/omega:temp replace openv2x/omega:master in docker-compose-service.yaml | |
# 3. all-in-one deploy | |
# 4. run e2e test | |
name: front-e2e-test | |
on: | |
pull_request: | |
branches: | |
- master | |
# This ensures that previous jobs for the branch are canceled when the branch is updated. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
env: | |
OPENV2X_EXTERNAL_IP: 127.0.0.1 | |
OPENV2X_CENTER_IP: 127.0.0.1 | |
OPENV2X_IS_CENTER: true | |
OPENV2X_REDIS_ROOT: password | |
OPENV2X_MARIADB_ROOT: password | |
OPENV2X_MARIADB_DANDELION: password | |
OPENV2X_EMQX_ROOT: password | |
jobs: | |
front-e2e-test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: build temporary image | |
run: | | |
docker build -t openv2x/omega:temp . | |
- name: deploy service | |
run: | | |
sudo rm -rf openv2x-aio-master.tar.gz && wget https://openv2x.oss-ap-southeast-1.aliyuncs.com/deploy/master/openv2x-aio-master.tar.gz | |
sudo rm -rf src && tar zxvf openv2x-aio-master.tar.gz | |
sudo sed -i "s/8084/8085/" src/deploy/docker-compose-pre.yaml && sudo sed -i "s/8084/8085/" src/deploy/docker-compose-service.yaml | |
sed -i "s#openv2x/omega:master#openv2x/omega:temp#" src/deploy/docker-compose-service.yaml | |
cd src && chmod +x ./install.sh && sudo -E bash ./install.sh | |
docker ps | |
- name: Install dependencies | |
run: npm install | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
# - name: Run Playwright tests | |
# run: npx playwright test | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report | |
path: e2e/playwright-report | |
retention-days: 30 |