Skip to content

chore(deps): update dependency @vue/language-core to ^2.1.6 - autoclosed #977

chore(deps): update dependency @vue/language-core to ^2.1.6 - autoclosed

chore(deps): update dependency @vue/language-core to ^2.1.6 - autoclosed #977

Workflow file for this run

name: Test
env:
# 7 GiB by default on GitHub, setting to 6 GiB
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
# NODE_OPTIONS: --max-old-space-size=6144
# install playwright binary manually (because pnpm only runs install script once)
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
on:
push:
branches:
- 'main'
paths-ignore:
- '**.md'
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node_version: [18, 20]
include:
# Active LTS + other OS
- os: macos-latest
node_version: 20
- os: windows-latest
node_version: 20
fail-fast: false
name: 'Build&Test: node-${{ matrix.node_version }}, ${{ matrix.os }}'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Set node version to ${{ matrix.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
cache: 'pnpm'
- name: Install deps
run: pnpm install
# Install playwright's binary under custom directory to cache
- name: Set Playwright path (non-windows)
if: runner.os != 'Windows'
run: echo "PLAYWRIGHT_BROWSERS_PATH=$HOME/.cache/playwright-bin" >> $GITHUB_ENV
- name: Set Playwright path (windows)
if: runner.os == 'Windows'
run: echo "PLAYWRIGHT_BROWSERS_PATH=$HOME\.cache\playwright-bin" >> $env:GITHUB_ENV
- name: Cache Playwright's binary
uses: actions/cache@v4
with:
# Playwright removes unused browsers automatically
# So does not need to add playwright version to key
key: ${{ runner.os }}-playwright-bin-v1
path: ${{ env.PLAYWRIGHT_BROWSERS_PATH }}
- name: Install Playwright
# does not need to explictly set chromium after https://github.com/microsoft/playwright/issues/14862 is solved
run: pnpm playwright install chromium
- name: Build
run: pnpm run build:test
- name: Format
run: pnpm run format
- name: Lint
run: pnpm run lint
- name: Publint
run: pnpm run publint
- name: Type check
run: pnpm run type-check
- name: Test unit
run: pnpm run test-unit
- name: Test serve (ESM)
run: pnpm run test-serve
- name: Test build (ESM)
run: pnpm run test-build
- name: Test serve (CJS)
if: ${{ matrix.node_version == 18 && matrix.os == 'ubuntu-latest' }}
run: pnpm run test-serve-cjs
- name: Test build (CJS)
if: ${{ matrix.node_version == 18 && matrix.os == 'ubuntu-latest' }}
run: pnpm run test-build-cjs