提交 dfaf2130 编写于 作者: fxy060608's avatar fxy060608

chore: workflows

上级 9df4ad81
...@@ -34,22 +34,28 @@ jobs: ...@@ -34,22 +34,28 @@ jobs:
- name: Set dependencies cache - name: Set dependencies cache
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: | path: ${{ steps.yarn-cache.outputs.dir }}
~/.cache
${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-node${{ matrix.node_version }}-${{ hashFiles('yarn.lock') }} key: ${{ runner.os }}-node${{ matrix.node_version }}-${{ hashFiles('yarn.lock') }}
restore-keys: | restore-keys: |
${{ runner.os }}-node${{ matrix.node_version }}-${{ hashFiles('yarn.lock') }} ${{ runner.os }}-node${{ matrix.node_version }}-${{ hashFiles('yarn.lock') }}
${{ runner.os }}-node${{ matrix.node_version }}- ${{ runner.os }}-node${{ matrix.node_version }}-
- name: Cache Cypress binary
uses: actions/cache@v2
with:
path: ~/.cache/Cypress
key: ${{ runner.os }}-cypress-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-cypress-
- name: Versions - name: Versions
run: yarn versions run: yarn versions
- name: Install dependencies - name: Install dependencies
run: yarn install --frozen-lockfile run: yarn install --frozen-lockfile
- name: Build all - name: Build
run: npm run build run: npm run build uni-app uni-cli-shared uni-h5 uni-i18n uni-shared vite-plugin-uni
- name: Install ssr - name: Install ssr
working-directory: ./packages/playground/ssr working-directory: ./packages/playground/ssr
...@@ -58,7 +64,7 @@ jobs: ...@@ -58,7 +64,7 @@ jobs:
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v2 uses: cypress-io/github-action@v2
with: with:
install: false install: true
start: npm run e2e:ssr:dev start: npm run e2e:ssr:dev
project: ./packages/playground/ssr project: ./packages/playground/ssr
wait-on: 'http://localhost:3000' wait-on: 'http://localhost:3000'
......
...@@ -13,7 +13,34 @@ jobs: ...@@ -13,7 +13,34 @@ jobs:
CI_JOB_NUMBER: 1 CI_JOB_NUMBER: 1
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- uses: bahmutov/npm-install@v1
- name: Get yarn cache directory
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Set dependencies cache
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-${{ hashFiles('yarn.lock') }}
${{ runner.os }}-node-
- name: Cache Cypress binary
uses: actions/cache@v2
with:
path: ~/.cache/Cypress
key: ${{ runner.os }}-cypress-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-cypress-
- name: Versions
run: yarn versions
- name: Install dependencies
run: yarn install --frozen-lockfile
- uses: fxy060608/size-check-action@v1.1.3 - uses: fxy060608/size-check-action@v1.1.3
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册