| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- 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/core-vapor'
- runs-on: ubuntu-latest
- needs: [unit-test, lint-and-test-dts]
- 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'
|