zombiej
4 years ago
4 changed files with 0 additions and 310 deletions
@ -1,19 +0,0 @@ |
|||
name: Lighthouse |
|||
on: push |
|||
jobs: |
|||
lighthouse: |
|||
runs-on: ubuntu-latest |
|||
steps: |
|||
- uses: actions/checkout@v1 |
|||
- name: Audit URLs using Lighthouse |
|||
uses: treosh/lighthouse-ci-action@v2 |
|||
with: |
|||
urls: | |
|||
https://ant.design |
|||
https://ant.design/docs/react/introduce-cn |
|||
https://ant.design/components/button-cn |
|||
- name: Save results |
|||
uses: actions/upload-artifact@v1 |
|||
with: |
|||
name: lighthouse-results |
|||
path: '.lighthouseci' # This will save the Lighthouse results as .json files |
@ -1,14 +0,0 @@ |
|||
on: |
|||
issue_comment: |
|||
types: [created] |
|||
name: Automatic Rebase |
|||
jobs: |
|||
rebase: |
|||
name: Rebase |
|||
runs-on: ubuntu-latest |
|||
steps: |
|||
- uses: actions/checkout@master |
|||
- name: Automatic Rebase |
|||
uses: cirrus-actions/rebase@master |
|||
env: |
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
@ -1,208 +0,0 @@ |
|||
name: test |
|||
|
|||
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 |
|||
|
|||
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 |
|||
|
|||
- name: check |
|||
run: node ./tests/dekko/lib.test.js |
|||
needs: setup |
|||
|
|||
dist: |
|||
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: dist |
|||
run: npm run dist |
|||
|
|||
- name: check |
|||
run: node ./tests/dekko/dist.test.js |
|||
|
|||
- name: test |
|||
run: npm test |
|||
env: |
|||
LIB_DIR: dist |
|||
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 |
|||
|
|||
- 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 |
|||
|
|||
lib: |
|||
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: restore cache from lib |
|||
uses: actions/cache@v1 |
|||
with: |
|||
path: lib |
|||
key: lib-${{ github.sha }} |
|||
|
|||
- name: test |
|||
run: npm test |
|||
env: |
|||
LIB_DIR: lib |
|||
needs: compile |
|||
|
|||
es: |
|||
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: restore cache from es |
|||
uses: actions/cache@v1 |
|||
with: |
|||
path: es |
|||
key: es-${{ github.sha }} |
|||
|
|||
- name: test |
|||
run: npm test |
|||
env: |
|||
LIB_DIR: es |
|||
needs: compile |
@ -1,69 +0,0 @@ |
|||
# Node.js |
|||
# Build a general Node.js project with npm. |
|||
# Add steps that analyze code, save build artifacts, deploy, and more: |
|||
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript |
|||
name: ant design |
|||
|
|||
trigger: |
|||
batch: true |
|||
branches: |
|||
exclude: |
|||
- gh-pages |
|||
|
|||
jobs: |
|||
- job: test_ |
|||
pool: |
|||
vmImage: 'Ubuntu-16.04' |
|||
strategy: |
|||
matrix: |
|||
Lint: |
|||
TEST_TYPE: lint |
|||
dist-react@16: |
|||
REACT: 16 |
|||
TEST_TYPE: test:dist |
|||
lib-react@16: |
|||
REACT: 16 |
|||
TEST_TYPE: test:lib |
|||
es-react@16: |
|||
REACT: 16 |
|||
TEST_TYPE: test:es |
|||
dom-react@16: |
|||
REACT: 16 |
|||
TEST_TYPE: test:dom |
|||
node-react@16: |
|||
REACT: 16 |
|||
TEST_TYPE: test:node |
|||
dist-react@15: |
|||
REACT: 15 |
|||
TEST_TYPE: test:dist |
|||
lib-react@15: |
|||
REACT: 15 |
|||
TEST_TYPE: test:lib |
|||
es-react@15: |
|||
REACT: 15 |
|||
TEST_TYPE: test:es |
|||
dom-react@15: |
|||
REACT: 15 |
|||
TEST_TYPE: test:dom |
|||
node-react@15: |
|||
REACT: 15 |
|||
TEST_TYPE: test:node |
|||
steps: |
|||
- checkout: self |
|||
fetchDepth: 1 |
|||
clean: false |
|||
- task: NodeTool@0 |
|||
inputs: |
|||
versionSpec: '10.x' |
|||
- script: npm install |
|||
displayName: install |
|||
- script: scripts/install-react.sh |
|||
displayName: install-react |
|||
- script: scripts/travis-script.sh |
|||
displayName: test |
|||
- task: PublishBuildArtifacts@1 |
|||
# 主分支,并且运行成功 |
|||
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) |
|||
inputs: |
|||
pathtoPublish: './package-lock.json' |
|||
artifactName: lock |
Loading…
Reference in new issue