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

chore: workflows

上级 704efbb5
......@@ -16,8 +16,6 @@ jobs:
include:
- os: macos-latest
node_version: 12
- os: windows-latest
node_version: 12
fail-fast: false
name: 'e2e: node-${{ matrix.node_version }}, ${{ matrix.os }}'
steps:
......@@ -37,7 +35,7 @@ jobs:
uses: actions/cache@v2
with:
path: |
~/cache
~/.cache
${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-node${{ matrix.node_version }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
......
......@@ -12,35 +12,11 @@ jobs:
env:
CI_JOB_NUMBER: 1
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set node version to 12
uses: actions/setup-node@v2
with:
node-version: 12
- 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: |
~/cache
${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-node12-${{ hashFiles('yarn.lock') }}
restore-keys: ${{ runner.os }}-node12-${{ hashFiles('yarn.lock') }}
- name: Versions
run: yarn versions
- name: Install dependencies
run: yarn install --frozen-lockfile
- uses: actions/checkout@v1
- uses: bahmutov/npm-install@v1
- uses: fxy060608/size-check-action@v1.1.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
build_script: build
files: packages/size-check/dist/size-check.es.js packages/size-check/dist/style.css packages/uni-app/dist/uni-app.es.js packages/uni-h5-vue/dist/vue.runtime.esm.js packages/uni-mp-vue/dist/vue.runtime.esm.js packages/uni-mp-alipay/dist/uni.api.esm.js packages/uni-mp-alipay/dist/uni.mp.esm.js packages/uni-mp-baidu/dist/uni.api.esm.js packages/uni-mp-baidu/dist/uni.mp.esm.js packages/uni-mp-qq/dist/uni.api.esm.js packages/uni-mp-qq/dist/uni.mp.esm.js packages/uni-mp-toutiao/dist/uni.api.esm.js packages/uni-mp-toutiao/dist/uni.mp.esm.js packages/uni-mp-weixin/dist/uni.api.esm.js packages/uni-mp-weixin/dist/uni.mp.esm.js packages/uni-quickapp-webview/dist/uni.api.esm.js packages/uni-quickapp-webview/dist/uni.mp.esm.js
- run: npm run test
<template>
<match-media min-width="300" max-width="600">
<view>当页面宽度在 300 ~ 500 px 之间时展示这里</view>
</match-media>
</template>
\ No newline at end of file
<template>
<movable-area>
<movable-view>text</movable-view>
</movable-area>
</template>
\ No newline at end of file
......@@ -5,7 +5,7 @@ export function createApp() {
// `trace` 是组件的继承关系追踪
app.config.warnHandler = function (msg) {
const ssrLogElem = document.getElementById('ssr-log')
ssrLogElem.innerHTML = ssrLogElem.innerHTML + '\n' + msg
ssrLogElem && (ssrLogElem.innerHTML = ssrLogElem.innerHTML + '\n' + msg)
}
return {
app,
......
<template>
<ssr-cover-image />
<ssr-cover-view />
<!-- <ssr-match-media /> -->
<!-- <ssr-movable-area /> -->
<ssr-view />
<ssr-text />
<ssr-progress />
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册