mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 22:10:22 +00:00
39 lines
808 B
YAML
39 lines
808 B
YAML
name: Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
|
|
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
node_version: [
|
|
10.x, # EOL: April 2021
|
|
12.x, # EOL: April 2022
|
|
]
|
|
exclude:
|
|
- os: macOS-latest
|
|
node_version: 10.x
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v1
|
|
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
|