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:
|
|
|
|
# EOL: April 2023
|
|
|
|
- os: ubuntu-latest
|
|
|
|
node_version: 14.x
|
|
|
|
|
2021-11-04 23:59:38 +00:00
|
|
|
# EOL: April 2024
|
|
|
|
- os: ubuntu-latest
|
|
|
|
node_version: 16.x
|
|
|
|
- os: macOS-latest
|
|
|
|
node_version: 16.x
|
|
|
|
- os: windows-latest
|
|
|
|
node_version: 16.x
|
|
|
|
|
2022-04-30 20:12:24 +00:00
|
|
|
# EOL: April 2025
|
|
|
|
- os: ubuntu-latest
|
|
|
|
node_version: 18.x
|
|
|
|
|
2019-08-14 08:43:25 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
|
|
|
|
- name: Setup Node.js
|
2022-03-03 00:31:28 +00:00
|
|
|
uses: actions/setup-node@v3
|
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
|