| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- name: 'test'
- on: workflow_call
- permissions:
- contents: read # to fetch code (actions/checkout)
- jobs:
- unit-test:
- runs-on: ubuntu-latest
- env:
- PUPPETEER_SKIP_DOWNLOAD: 'true'
- steps:
- - uses: actions/checkout@v4
- - name: Install pnpm
- uses: pnpm/action-setup@v4.0.0
- - name: Install Node.js
- uses: actions/setup-node@v4
- with:
- node-version-file: '.node-version'
- cache: 'pnpm'
- - run: pnpm install
- - name: Run unit tests
- run: pnpm run test-unit
- lint-and-test-dts:
- runs-on: ubuntu-latest
- env:
- PUPPETEER_SKIP_DOWNLOAD: 'true'
- steps:
- - uses: actions/checkout@v4
- - name: Install pnpm
- uses: pnpm/action-setup@v4.0.0
- - name: Install Node.js
- uses: actions/setup-node@v4
- with:
- node-version-file: '.node-version'
- cache: 'pnpm'
- - run: pnpm install
- - name: Run eslint
- run: pnpm run lint
- - name: Run prettier
- run: pnpm run format-check
- - name: Run type declaration tests
- run: pnpm run test-dts
- continuous-release:
- if: github.repository == 'vuejs/vue-vapor'
- runs-on: ubuntu-latest
- permissions:
- contents: read
- id-token: write
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- - name: Install pnpm
- uses: pnpm/action-setup@v4
- - name: Install Node.js
- uses: actions/setup-node@v4
- with:
- node-version-file: '.node-version'
- registry-url: 'https://registry.npmjs.org'
- cache: 'pnpm'
- - name: Install deps
- run: pnpm install
- - name: Build
- run: pnpm build --withTypes
- - name: Release
- run: pnpx pkg-pr-new publish --pnpm './packages/*' --template './playground'
|