mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-26 01:00:28 +02:00
It's time to move on from yarn 1, imo. Not that I contribute enough to care, but it was frustrating to use yarn while setting my local repo up again.
53 lines
1 KiB
YAML
53 lines
1 KiB
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 2024
|
|
- os: ubuntu-latest
|
|
node_version: 16.x
|
|
- os: macOS-latest
|
|
node_version: 18.x
|
|
- os: windows-latest
|
|
node_version: 18.x
|
|
# EOL: April 2025
|
|
- os: ubuntu-latest
|
|
node_version: 18.x
|
|
# EOL: April 2026
|
|
- os: ubuntu-latest
|
|
node_version: 20.x
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: pnpm/action-setup@v2
|
|
with:
|
|
version: 8
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node_version }}
|
|
|
|
- name: Install
|
|
run: pnpm --frozen-lockfile --non-interactive
|
|
|
|
- name: Build
|
|
run: pnpm build
|
|
env:
|
|
NODE_ENV: production
|
|
|
|
- name: Test
|
|
run: pnpm test
|