thelounge/.github/workflows/build.yml
Tiago de Paula 2b5730ef69
chore(deps): bump to Node 22 (current LTS)
Skipping Node 20, because it's in Maintenance mode and will reach
End-of-Life in a few months.

See <https://github.com/nodejs/release#release-schedule>
2026-01-31 16:56:48 -03:00

48 lines
1,001 B
YAML

name: Build
permissions:
contents: read
on: [push, pull_request]
jobs:
build:
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
strategy:
matrix:
include:
# EOL: April 2027
- os: macOS-latest
node_version: 22.x
- os: windows-latest
node_version: 22.x
- os: ubuntu-latest
node_version: 22.x
# EOL: April 2028
- os: ubuntu-latest
node_version: 24.x
# EOL: June 2026
- os: ubuntu-latest
node_version: 25.x
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node_version }}
- name: Install
run: yarn --frozen-lockfile --non-interactive
- name: Build
run: yarn build
env:
NODE_ENV: production
- name: Test
run: yarn test