chore: 修改gitignore,不提交index文件 #15300
This file contains hidden or 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: test | |
| on: [push, pull_request] | |
| jobs: | |
| tsc: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: npm i && npm run build:tsc | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: npm i && npm run lint | |
| unit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache node modules | |
| id: cache | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: cache-node-modules | |
| with: | |
| path: | | |
| ~/.npm | |
| node_modules | |
| test/e2e/miniprogram-project/node_modules | |
| test/e2e/miniprogram-cli-project/node_modules | |
| test/e2e/plugin-project/node_modules | |
| packages/webpack-plugin/node_modules | |
| packages/core/node_modules | |
| packages/api-proxy/node_modules | |
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-build-${{ env.cache-name }}- | |
| ${{ runner.os }}-build- | |
| ${{ runner.os }}- | |
| - name: install deps | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| run: npm i && npm i --prefix test/e2e/miniprogram-project && npm i --prefix test/e2e/miniprogram-cli-project && npm i --prefix test/e2e/plugin-project | |
| - name: build webpack-plugin | |
| run: npm run build --prefix packages/webpack-plugin | |
| - name: copy-webpack-plugin | |
| run: npm run copyPlugin --prefix test/e2e/miniprogram-project && npm run copyPlugin --prefix test/e2e/miniprogram-cli-project && npm run copyPlugin --prefix test/e2e/plugin-project | |
| - name: build-miniprogram | |
| run: npm run build:cross --prefix test/e2e/miniprogram-project | |
| - name: build-miniprogram-cli | |
| run: npm run build:cross --prefix test/e2e/miniprogram-cli-project | |
| - name: build-plugin | |
| run: npm run build --prefix test/e2e/plugin-project | |
| - name: exec unit test | |
| run: npm t && npm t --prefix test/e2e/miniprogram-project && npm t --prefix test/e2e/plugin-project |