2019-08-14 08:43:25 +00:00
|
|
|
name: Build
|
|
|
|
|
2023-04-23 08:44:18 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2019-08-14 08:43:25 +00:00
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-04-24 13:09:13 +00:00
|
|
|
include:
|
2024-01-27 23:38:26 +00:00
|
|
|
# EOL: April 2025
|
2021-11-04 23:59:38 +00:00
|
|
|
- os: macOS-latest
|
2023-04-23 19:48:39 +00:00
|
|
|
node_version: 18.x
|
2021-11-04 23:59:38 +00:00
|
|
|
- os: windows-latest
|
2023-04-23 19:48:39 +00:00
|
|
|
node_version: 18.x
|
2022-04-30 20:12:24 +00:00
|
|
|
- os: ubuntu-latest
|
|
|
|
node_version: 18.x
|
2023-04-22 08:02:38 +00:00
|
|
|
# EOL: April 2026
|
|
|
|
- os: ubuntu-latest
|
|
|
|
node_version: 20.x
|
2024-01-27 23:38:26 +00:00
|
|
|
# EOL: April June 2024
|
|
|
|
- os: ubuntu-latest
|
|
|
|
node_version: 21.x
|
2022-04-30 20:12:24 +00:00
|
|
|
|
2019-08-14 08:43:25 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
|
|
|
|
- name: Setup Node.js
|
2023-10-24 16:50:41 +00:00
|
|
|
uses: actions/setup-node@v4
|
2019-08-14 08:43:25 +00:00
|
|
|
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
|