-
Notifications
You must be signed in to change notification settings - Fork 447
49 lines (36 loc) · 1.1 KB
/
webpack.yaml
File metadata and controls
49 lines (36 loc) · 1.1 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
name: webpack
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
# Work around pnpm/action-setup v6 resolving the wrong version from package.json
# https://github.com/pnpm/action-setup/issues/227
- name: Read pnpm version
id: pnpm-version
run: echo "version=$(jq --raw-output '.devEngines.packageManager.version | split(\"+\")[0]' package.json)" >> "$GITHUB_OUTPUT"
- uses: pnpm/action-setup@v6
with:
version: ${{ steps.pnpm-version.outputs.version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install
run: pnpm install --ignore-scripts
- name: Format
run: pnpm run pretty:check
- name: Lint
run: pnpm run lint
- name: Test
run: pnpm run test
- name: Build
run: pnpm run build
- name: Typecheck
run: pnpm run ts:check