41 lines
789 B
YAML
41 lines
789 B
YAML
name: 'Check build'
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- developer
|
|
paths:
|
|
- 'play-dl/**'
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- developer
|
|
paths:
|
|
- 'play-dl/**'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
node-version: ['16', '17']
|
|
|
|
name: Node ${{ matrix.node-version }}
|
|
steps:
|
|
- name: Clone repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup node ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
registry-url: 'https://registry.npmjs.org'
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Build
|
|
run: npm run build
|