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

chore(workflows): cache

上级 a442d7e4
...@@ -27,34 +27,27 @@ jobs: ...@@ -27,34 +27,27 @@ jobs:
with: with:
node-version: ${{ matrix.node_version }} node-version: ${{ matrix.node_version }}
- name: Get yarn cache directory - name: Cache node modules
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${{ matrix.node_version }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-node${{ matrix.node_version }}-${{ hashFiles('yarn.lock') }}
${{ runner.os }}-node${{ matrix.node_version }}-
- name: Cache Cypress binary
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: | path: ~/.cache
~/.cache/Cypress key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }}
~/Library/Caches/Cypress
key: ${{ runner.os }}-cypress-${{ hashFiles('yarn.lock') }}
restore-keys: | restore-keys: |
${{ runner.os }}-cypress- ${{ runner.os }}-node-
- name: Versions - name: Versions
run: yarn versions run: yarn versions
- name: Install dependencies - name: Install dependencies and verify Cypress
run: yarn install --frozen-lockfile run: |
yarn install --frozen-lockfile
npx cypress verify
npx cypress info
npx cypress version
npx cypress version --component package
npx cypress version --component binary
npx cypress version --component electron
npx cypress version --component node
- name: Build - name: Build
run: npm run build uni-app uni-cli-shared uni-h5 uni-i18n uni-shared vite-plugin-uni run: npm run build uni-app uni-cli-shared uni-h5 uni-i18n uni-shared vite-plugin-uni
......
...@@ -14,29 +14,14 @@ jobs: ...@@ -14,29 +14,14 @@ jobs:
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Get yarn cache directory - name: Cache node modules
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Set dependencies cache
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: ${{ steps.yarn-cache.outputs.dir }} path: ~/.cache
key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }} key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }}
restore-keys: | restore-keys: |
${{ runner.os }}-node-${{ hashFiles('yarn.lock') }}
${{ runner.os }}-node- ${{ runner.os }}-node-
- name: Cache Cypress binary
uses: actions/cache@v2
with:
path: |
~/.cache/Cypress
~/Library/Caches/Cypress
key: ${{ runner.os }}-cypress-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-cypress-
- name: Versions - name: Versions
run: yarn versions run: yarn versions
......
<template>
<swiper>
<swiper-item>
<view class="swiper-item">1</view>
</swiper-item>
<swiper-item>
<view class="swiper-item">2</view>
</swiper-item>
<swiper-item>
<view class="swiper-item">3</view>
</swiper-item>
<swiper-item>
<view class="swiper-item">4</view>
</swiper-item>
</swiper>
</template>
\ No newline at end of file
...@@ -3,10 +3,11 @@ ...@@ -3,10 +3,11 @@
<ssr-cover-view /> <ssr-cover-view />
<!-- <ssr-match-media /> --> <!-- <ssr-match-media /> -->
<!-- <ssr-movable-area /> --> <!-- <ssr-movable-area /> -->
<ssr-view />
<ssr-text />
<ssr-progress /> <ssr-progress />
<ssr-scroll-view /> <ssr-scroll-view />
<ssr-swiper />
<ssr-text />
<ssr-view />
<view id="ssr-log"></view> <view id="ssr-log"></view>
</template> </template>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册