upgrade GHA reusable actions to node24-compatible versions, as the no… #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'ci' | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read # to fetch code (actions/checkout) | |
| jobs: | |
| unit-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0 | |
| - name: Set node version to 18 | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version: 18 | |
| cache: 'pnpm' | |
| - run: PUPPETEER_SKIP_DOWNLOAD=1 pnpm install | |
| - name: Run unit tests | |
| run: pnpm run test-unit | |
| e2e-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Setup cache for Chromium binary | |
| uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 | |
| with: | |
| path: ~/.cache/puppeteer/chrome | |
| key: chromium-${{ hashFiles('pnpm-lock.yaml') }} | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0 | |
| - name: Set node version to 18 | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version: 18 | |
| cache: 'pnpm' | |
| - run: pnpm install | |
| - name: Run e2e tests | |
| run: pnpm run test-e2e | |
| lint-and-test-dts: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0 | |
| - name: Set node version to 18 | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version: 18 | |
| cache: 'pnpm' | |
| - run: PUPPETEER_SKIP_DOWNLOAD=1 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 | |
| size: | |
| runs-on: ubuntu-latest | |
| env: | |
| CI_JOB_NUMBER: 1 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0 | |
| - name: Set node version to 18 | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version: 18 | |
| cache: 'pnpm' | |
| - run: PUPPETEER_SKIP_DOWNLOAD=1 pnpm install | |
| - run: pnpm run size | |
| # - 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/index.js |