-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (37 loc) · 1.44 KB
/
Copy pathnode.js.yml
File metadata and controls
42 lines (37 loc) · 1.44 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
# Installs from the lockfile, builds every workspace through Turborepo and runs
# the test suite.
#
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# 18 and 20 are both past end-of-life, and @changesets/cli needs
# ^22.11 || ^24 || >=26 — see .nvmrc.
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [22.x, 24.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
# One install for the whole workspace; the internal packages are
# symlinked into the root node_modules, so there is no bootstrap step.
- run: npm ci
# Formatting is checked here rather than inside `npm test`, which already
# runs eslint: the pre-commit hook only formats files someone happened to
# touch, so without this the rest drifts unnoticed.
- run: npm run prettier:check
# Turborepo derives the build order from the manifests: `utils` before
# `generic-html-renderer` before the renderers that depend on it.
- run: npm run build
# Also runs eslint.
- run: npm test