chore: add actions
parent
80ca9b0644
commit
ac94df285c
|
@ -1,14 +0,0 @@
|
||||||
# Configuration for lock-threads - https://github.com/dessant/lock-threads
|
|
||||||
|
|
||||||
# Number of days of inactivity before a closed issue or pull request is locked
|
|
||||||
daysUntilLock: 365
|
|
||||||
# Comment to post before locking. Set to `false` to disable
|
|
||||||
lockComment: >
|
|
||||||
This thread has been automatically locked because it has not had recent
|
|
||||||
activity. Please open a new issue for related bugs and link to relevant
|
|
||||||
comments in this thread.
|
|
||||||
# Issues or pull requests with these labels will not be locked
|
|
||||||
# exemptLabels:
|
|
||||||
# - no-locking
|
|
||||||
# Limit to only `issues` or `pulls`
|
|
||||||
only: issues
|
|
|
@ -0,0 +1,71 @@
|
||||||
|
name: codecov
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
setup:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@master
|
||||||
|
|
||||||
|
- name: cache package-lock.json
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: package-temp-dir
|
||||||
|
key: lock-${{ github.sha }}
|
||||||
|
|
||||||
|
- name: create package-lock.json
|
||||||
|
run: npm i --package-lock-only
|
||||||
|
|
||||||
|
- name: hack for singe file
|
||||||
|
run: |
|
||||||
|
if [ ! -d "package-temp-dir" ]; then
|
||||||
|
mkdir package-temp-dir
|
||||||
|
fi
|
||||||
|
cp package-lock.json package-temp-dir
|
||||||
|
|
||||||
|
- name: cache node_modules
|
||||||
|
id: node_modules_cache_id
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: node_modules
|
||||||
|
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
|
||||||
|
|
||||||
|
- name: install
|
||||||
|
if: steps.node_modules_cache_id.outputs.cache-hit != 'true'
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
node:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@master
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.ACCESS_TOKEN }}
|
||||||
|
submodules: true
|
||||||
|
|
||||||
|
- name: restore cache from package-lock.json
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: package-temp-dir
|
||||||
|
key: lock-${{ github.sha }}
|
||||||
|
|
||||||
|
- name: restore cache from node_modules
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: node_modules
|
||||||
|
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
run: npm test
|
||||||
|
env:
|
||||||
|
COVERAGE: "true"
|
||||||
|
|
||||||
|
- name: codecov
|
||||||
|
run: npm run codecov
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|
||||||
|
needs: setup
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
name: 'Lock threads'
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lock:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: dessant/lock-threads@v2
|
||||||
|
with:
|
||||||
|
github-token: ${{ github.token }}
|
||||||
|
issue-lock-inactive-days: '365'
|
||||||
|
issue-lock-labels: 'outdated'
|
||||||
|
issue-lock-comment: >
|
||||||
|
This issue has been automatically locked since there
|
||||||
|
has not been any recent activity after it was closed.
|
||||||
|
Please open a new issue for related bugs.
|
||||||
|
pr-lock-comment: >
|
||||||
|
This pull request has been automatically locked since there
|
||||||
|
has not been any recent activity after it was closed.
|
||||||
|
Please open a new issue for related bugs.
|
|
@ -0,0 +1,119 @@
|
||||||
|
name: test
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
setup:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@master
|
||||||
|
|
||||||
|
- name: cache package-lock.json
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: package-temp-dir
|
||||||
|
key: lock-${{ github.sha }}
|
||||||
|
|
||||||
|
- name: create package-lock.json
|
||||||
|
run: npm i --package-lock-only
|
||||||
|
|
||||||
|
- name: hack for singe file
|
||||||
|
run: |
|
||||||
|
if [ ! -d "package-temp-dir" ]; then
|
||||||
|
mkdir package-temp-dir
|
||||||
|
fi
|
||||||
|
cp package-lock.json package-temp-dir
|
||||||
|
|
||||||
|
- name: cache node_modules
|
||||||
|
id: node_modules_cache_id
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: node_modules
|
||||||
|
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
|
||||||
|
|
||||||
|
- name: install
|
||||||
|
if: steps.node_modules_cache_id.outputs.cache-hit != 'true'
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
compile:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@master
|
||||||
|
|
||||||
|
- name: restore cache from package-lock.json
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: package-temp-dir
|
||||||
|
key: lock-${{ github.sha }}
|
||||||
|
|
||||||
|
- name: restore cache from node_modules
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: node_modules
|
||||||
|
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
|
||||||
|
|
||||||
|
- name: cache lib
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: lib
|
||||||
|
key: lib-${{ github.sha }}
|
||||||
|
|
||||||
|
- name: cache es
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: es
|
||||||
|
key: es-${{ github.sha }}
|
||||||
|
|
||||||
|
- name: compile
|
||||||
|
run: npm run compile
|
||||||
|
needs: setup
|
||||||
|
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@master
|
||||||
|
|
||||||
|
- name: restore cache from package-lock.json
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: package-temp-dir
|
||||||
|
key: lock-${{ github.sha }}
|
||||||
|
|
||||||
|
- name: restore cache from node_modules
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: node_modules
|
||||||
|
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
|
||||||
|
|
||||||
|
- name: lint
|
||||||
|
run: npm run lint
|
||||||
|
needs: setup
|
||||||
|
|
||||||
|
node:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@master
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.ACCESS_TOKEN }}
|
||||||
|
submodules: true
|
||||||
|
|
||||||
|
- name: restore cache from package-lock.json
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: package-temp-dir
|
||||||
|
key: lock-${{ github.sha }}
|
||||||
|
|
||||||
|
- name: restore cache from node_modules
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: node_modules
|
||||||
|
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
run: npm test
|
||||||
|
needs: setup
|
||||||
|
|
19
.travis.yml
19
.travis.yml
|
@ -1,19 +0,0 @@
|
||||||
language: node_js
|
|
||||||
sudo: required
|
|
||||||
git:
|
|
||||||
submodules: false
|
|
||||||
node_js:
|
|
||||||
- 12.4.0
|
|
||||||
before_install:
|
|
||||||
- echo -e "machine github.com\n login Travis\n password $GITHUB_TOKEN" > ~/.netrc
|
|
||||||
- git submodule update --init --recursive
|
|
||||||
before_script:
|
|
||||||
- npm install vue vue-template-compiler
|
|
||||||
script:
|
|
||||||
- if [[ $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]]; then cp ./scripts/.npmrc.template $HOME/.npmrc; fi
|
|
||||||
- COVERAGE=true npm run test
|
|
||||||
- npm run codecov
|
|
||||||
- if [[ $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]]; then npm run pub-with-ci; fi
|
|
||||||
env:
|
|
||||||
matrix:
|
|
||||||
secure: PBbJaS48HA/mkj9PuGuRxs00DEJR77XfuPdSlTvCq0QxLIR6wIO+t3LLJdOQctZIX6KWBR/Zq3zSn5bRxgPIaRcoyuEU25ga4cexJMEh1ymE23uTiDcnWwWN0X1jZKGuHPvqVKjyToAv6XW24mTXNvEAqD2uL101JxBseoWJ/2VtyOjJFJwcGbw+MTLymWCZiAF10w+k0SyigawaxZLlYL9LZXv4w3oCjCwuiTD/T6rvyT3wGQzXx7/P7XQGL4el4lE7leuK5m2PhWvX2S3t2FRpoZPw0DINJu5XzuBr3DSMErQjCrP4Ep8iqW8pGGLkoXbcxK3/K+uSy0k+DdBN7jRgnnOeLpqeVUSMaM6LRnl2XyDWL3dKpVbEzZaFkRTmAwdbgYjI+7Enn3/GtseMASo/gK47m2k+kE/msoqwpTGLC5DBOBKxdNShdFnEbOxLUUiVNgoZRXbj6VhdueqK89LsMDsnxzmFtrU8Ytgv8wJsFd5IkIhCStmQ9bdTqER659hd1Qqdh6Qe36AfpZcetOLr86Z++CSwA/pZbLPeEVrfCHDh6V3DPQXG+Zlf/m60OAmhosJ+4dxZwRnR8LnaDFZ+uLYMz+vJGeOtFHvczz7TW4mznjguLE51crG+mkBGT2dx1UUg7zs41lz3GtH9WY8cSG4y5ryjDl6YkXwoiZI=
|
|
115
netlify.toml
115
netlify.toml
|
@ -1,115 +0,0 @@
|
||||||
[build]
|
|
||||||
publish = "_site"
|
|
||||||
command = "npm run site"
|
|
||||||
|
|
||||||
[context.production]
|
|
||||||
command = "echo build"
|
|
||||||
publish = "."
|
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = "/docs/resource/download"
|
|
||||||
to = "/docs/spec/download"
|
|
||||||
status = 301
|
|
||||||
force = false
|
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = "/docs/resource/download-cn"
|
|
||||||
to = "/docs/spec/download-cn"
|
|
||||||
status = 301
|
|
||||||
force = false
|
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = "/docs/resource/reference"
|
|
||||||
to = "/docs/spec/reference"
|
|
||||||
status = 301
|
|
||||||
force = false
|
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = "/docs/resource/reference-cn"
|
|
||||||
to = "/docs/spec/reference-cn"
|
|
||||||
status = 301
|
|
||||||
force = false
|
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = "/docs/spec/feature"
|
|
||||||
to = "/docs/spec/values"
|
|
||||||
status = 301
|
|
||||||
force = false
|
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = "/docs/spec/feature-cn"
|
|
||||||
to = "/docs/spec/values-cn"
|
|
||||||
status = 301
|
|
||||||
force = false
|
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = "/docs/pattern/advanced-search"
|
|
||||||
to = "/docs/spec/overview"
|
|
||||||
status = 301
|
|
||||||
force = false
|
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = "/docs/pattern/advanced-search-cn"
|
|
||||||
to = "/docs/spec/overview-cn"
|
|
||||||
status = 301
|
|
||||||
force = false
|
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = "/docs/pattern/complex-table"
|
|
||||||
to = "/docs/spec/overview"
|
|
||||||
status = 301
|
|
||||||
force = false
|
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = "/docs/pattern/complex-table-cn"
|
|
||||||
to = "/docs/spec/overview-cn"
|
|
||||||
status = 301
|
|
||||||
force = false
|
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = "/docs/pattern/form"
|
|
||||||
to = "/docs/spec/overview"
|
|
||||||
status = 301
|
|
||||||
force = false
|
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = "/docs/pattern/form-cn"
|
|
||||||
to = "/docs/spec/overview-cn"
|
|
||||||
status = 301
|
|
||||||
force = false
|
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = "/docs/pattern/list"
|
|
||||||
to = "/docs/spec/overview"
|
|
||||||
status = 301
|
|
||||||
force = false
|
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = "/docs/pattern/list-cn"
|
|
||||||
to = "/docs/spec/overview-cn"
|
|
||||||
status = 301
|
|
||||||
force = false
|
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = "/docs/pattern/navigation"
|
|
||||||
to = "/docs/spec/overview"
|
|
||||||
status = 301
|
|
||||||
force = false
|
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = "/docs/pattern/navigation-cn"
|
|
||||||
to = "/docs/spec/overview-cn"
|
|
||||||
status = 301
|
|
||||||
force = false
|
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = "/docs/pattern/table"
|
|
||||||
to = "/docs/spec/overview"
|
|
||||||
status = 301
|
|
||||||
force = false
|
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = "/docs/pattern/table-cn"
|
|
||||||
to = "/docs/spec/overview-cn"
|
|
||||||
status = 301
|
|
||||||
force = false
|
|
Loading…
Reference in New Issue