| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- name: 'ci'
- on:
- push:
- branches:
- - '**'
- pull_request:
- branches:
- - master
- jobs:
- test:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: Set node version to 16
- uses: actions/setup-node@v2
- with:
- node-version: 16
- cache: 'yarn'
- - run: yarn install --frozen-lockfile
- - name: Run unit tests
- run: yarn test --ci
- test-dts:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: Set node version to 16
- uses: actions/setup-node@v2
- with:
- node-version: 16
- cache: 'yarn'
- - run: yarn install --frozen-lockfile
- - name: Run type declaration tests
- run: yarn test-dts
- size:
- runs-on: ubuntu-latest
- env:
- CI_JOB_NUMBER: 1
- steps:
- - uses: actions/checkout@v1
- - name: Set node version to 16
- uses: actions/setup-node@v2
- with:
- node-version: 16
- cache: 'yarn'
- - run: yarn install --frozen-lockfile
- - name: Check build size
- uses: posva/size-check-action@v1.1.2
- with:
- github_token: ${{ secrets.GITHUB_TOKEN }}
- build_script: size
- files: packages/vue/dist/vue.global.prod.js packages/runtime-dom/dist/runtime-dom.global.prod.js packages/size-check/dist/size-check.global.prod.js
|