mirror of
https://github.com/thelounge/thelounge
synced 2024-11-25 05:20:21 +00:00
113e9bd2fb
Node.js 16 entered EOL in September 2023 (https://nodejs.org/en/blog/announcements/nodejs16-eol)
48 lines
1,007 B
YAML
48 lines
1,007 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 2025
|
|
- os: macOS-latest
|
|
node_version: 18.x
|
|
- os: windows-latest
|
|
node_version: 18.x
|
|
- os: ubuntu-latest
|
|
node_version: 18.x
|
|
# EOL: April 2026
|
|
- os: ubuntu-latest
|
|
node_version: 20.x
|
|
# EOL: April June 2024
|
|
- os: ubuntu-latest
|
|
node_version: 21.x
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
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
|