mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-11-16 01:37:07 +00:00
b3c202fd33
* Move minimum supported version: node=12, npm=6.9 * Add missing bits and documentation for future bumping Co-authored-by: Ronan Jouchet <ronan@jouchet.fr>
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
node-version:
|
|
# Align the top Node version here with: 1. linter conditions later below, 2. publish.yml.
|
|
- 16.x
|
|
# Bumping the minimum required Node version? You must bump:
|
|
# 1. package.json -> engines.node
|
|
# 2. package.json -> devDependencies.@types/node
|
|
# 3. tsconfig.json -> {target, lib}
|
|
# 4. .github/workflows/ci.yml -> node-version
|
|
#
|
|
# Here in ci.yml, we want to always run the oldest version we require in
|
|
# package.json -> engines.node, to be sure Nativefier runs on this minimum
|
|
- 12.x
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
# Will also (through `prepare` hook): 1. install ./app, and 2. build
|
|
- run: npm install --no-fund
|
|
# Only run linter once, for faster CI. Align the versions of Node here with above and publish.yml.
|
|
- if: matrix.platform == 'ubuntu-latest' && matrix.node-version == '16.x'
|
|
run: npm run lint
|
|
- run: npm test
|