diff --git a/.github/workflows/build-enjoy-app.yml b/.github/workflows/build-enjoy-app.yml deleted file mode 100644 index 0e8cee603..000000000 --- a/.github/workflows/build-enjoy-app.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Build Enjoy App -on: workflow_dispatch - -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [macos-11, macos-13, macos-latest, windows-latest, ubuntu-latest] - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20 - - name: install dependencies - run: yarn install - - name: build - run: yarn make:enjoy diff --git a/.github/workflows/test-enjoy-app.yml b/.github/workflows/test-enjoy-app.yml index f31c411b4..aa8e48687 100644 --- a/.github/workflows/test-enjoy-app.yml +++ b/.github/workflows/test-enjoy-app.yml @@ -5,7 +5,10 @@ on: branches: - main paths: - - "enjoy/**" + - "enjoy/**/*.ts" + - "enjoy/**/*.tsx" + - "enjoy/**/*.js" + - "enjoy/**/*.mjs" jobs: test: timeout-minutes: 60 @@ -30,8 +33,6 @@ jobs: node-version: 20 - name: Install dependencies run: npm install -g yarn && yarn - - name: Install Playwright Browsers - run: yarn workspace enjoy playwright install --with-deps - if: matrix.os == 'ubuntu-latest' name: Run tests with xvfb-run run: | diff --git a/README.md b/README.md index 263d9db0d..6aa4d0304 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,9 @@ # Enjoy App +[![Test](https://github.com/xiaolai/everyone-can-use-english/actions/workflows/test-enjoy-app.yml/badge.svg)](https://github.com/xiaolai/everyone-can-use-english/actions/workflows/test-enjoy-app.yml) +[![Release](https://github.com/xiaolai/everyone-can-use-english/actions/workflows/release-enjoy-app.yml/badge.svg)](https://github.com/xiaolai/everyone-can-use-english/actions/workflows/release-enjoy-app.yml) + ## \* 开发者 ### 本地启动 @@ -79,7 +82,7 @@ yarn make:enjoy yarn start:enjoy ``` -6. 以后重新启动用 Terminal +6. 以后重新启动用 Terminal ```bash cd ~/github/everyone-can-use-english @@ -205,6 +208,7 @@ yarn make:enjoy **Q: 很多解决不了的问题,怎么办?** -其实,可能还有很多其它问题,比如,本软件安装、OpenAI(注册、支付)、美国线路…… +其实,可能还有很多其它问题,比如,本软件安装、OpenAI(注册、支付)、美国线路…… + +> A: 1)文本生成,可以暂时用各种翻译工具,比如 Google Translate,或者其它的替代方案;2)语音生成,可以暂时用开源免费的 [Edge-TTS-record](https://github.com/LuckyHookin/edge-TTS-record) -> A: 1)文本生成,可以暂时用各种翻译工具,比如 Google Translate,或者其它的替代方案;2)语音生成,可以暂时用开源免费的 [Edge-TTS-record](https://github.com/LuckyHookin/edge-TTS-record) \ No newline at end of file