Repository navigation
118 lines (98 loc) · 2.97 KB
/
Copy pathmain.yml
File metadata and controls
118 lines (98 loc) · 2.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 1
matrix:
node-version: [22, 24, 26]
steps:
- name: Checkout code
uses: actions/checkout@v7.0.1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v7.1.0
with:
node-version: ${{ matrix.node-version }}
- name: Install pnpm
uses: pnpm/action-setup@v6.1.0
with:
cache: true
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Cache Playwright browser
uses: actions/cache@v6.1.0
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install Playwright browser
run: pnpm exec playwright-core install chromium
- run: pnpm lint --max-warnings 0
- name: Check formatting
run: pnpm format:check
- name: Prepare module types
run: pnpm dev:prepare
- name: Check types
run: pnpm test:types
- name: Validate published package types
run: pnpm test:package
- name: Build Playground
run: pnpm dev:build
- name: Execute tests
run: pnpm test
- name: Build playground from the workspace
run: pnpm --dir playground build
compatibility:
timeout-minutes: 15
runs-on: ubuntu-latest
# Nightly breakage upstream should surface without turning the main branch red.
continue-on-error: ${{ startsWith(matrix.nuxt-version, 'npm:nuxt-nightly') }}
strategy:
fail-fast: false
matrix:
nuxt-version: ['3', '4', 'npm:nuxt-nightly@5x']
steps:
- uses: actions/checkout@v7.0.1
- uses: actions/setup-node@v7.1.0
with:
node-version: 22
- uses: pnpm/action-setup@v6.1.0
with:
cache: true
- run: pnpm install --frozen-lockfile
- run: pnpm exec playwright-core install --with-deps chromium
- run: pnpm dev:prepare
- name: Test packed module in a generated static site
run: pnpm test:compatibility
env:
NUXT_VERSION: ${{ matrix.nuxt-version }}
NUXT_TELEMETRY_DISABLED: '1'
declarations:
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
typescript-version: ['6', '7']
steps:
- uses: actions/checkout@v7.0.1
- uses: actions/setup-node@v7.1.0
with:
node-version: 22
- uses: pnpm/action-setup@v6.1.0
with:
cache: true
- run: pnpm install --frozen-lockfile
- run: pnpm dev:prepare
- name: Check published package types with TypeScript ${{ matrix.typescript-version }}
run: pnpm test:package
env:
TYPESCRIPT_VERSION: ${{ matrix.typescript-version }}