thelounge/.github/workflows/build.yml

52 lines
1 KiB
YAML
Raw Normal View History

2019-08-14 10:43:25 +02:00
name: Build
on: [push, pull_request]
jobs:
build:
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
strategy:
matrix:
2020-04-24 15:09:13 +02:00
include:
# EOL: April 2022
- os: ubuntu-latest
node_version: 12.x
# EOL: April 2023
- os: ubuntu-latest
node_version: 14.x
2020-10-30 22:03:45 +01:00
# EOL: June 2021
- os: ubuntu-latest
node_version: 15.x
# EOL: April 2024
- os: ubuntu-latest
node_version: 16.x
- os: macOS-latest
node_version: 16.x
- os: windows-latest
node_version: 16.x
2019-08-14 10:43:25 +02:00
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: Setup Node.js
2021-02-10 01:12:09 +01:00
uses: actions/setup-node@v2
2019-08-14 10:43:25 +02: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