mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
82 lines
2.2 KiB
YAML
82 lines
2.2 KiB
YAML
name: Node
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
- stable*
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [12.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
|
|
- name: Use node ${{ matrix.node-version }}
|
|
uses: actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1.4.6
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Install dependencies & build
|
|
run: |
|
|
make clean
|
|
npm ci
|
|
npm run build --if-present
|
|
- name: Check webpack build changes
|
|
run: |
|
|
bash -c "[[ ! \"`git status --porcelain `\" ]] || ( echo 'Uncommited changes in webpack build' && git status && exit 1 )"
|
|
env:
|
|
CI: true
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [12.x]
|
|
steps:
|
|
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
|
|
- name: Use node ${{ matrix.node-version }}
|
|
uses: actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1.4.6
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Install dependencies
|
|
run: |
|
|
npm ci
|
|
- name: Test
|
|
run: npm run test
|
|
|
|
jsunit:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [12.x]
|
|
steps:
|
|
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
|
|
- name: Use node ${{ matrix.node-version }}
|
|
uses: actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1.4.6
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Test
|
|
run: ./autotest-js.sh
|
|
|
|
handlebars:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [12.x]
|
|
steps:
|
|
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
|
|
- name: Use node ${{ matrix.node-version }}
|
|
uses: actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1.4.6
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Install dependencies
|
|
run: |
|
|
npm ci
|
|
- name: Run compile
|
|
run: ./build/compile-handlebars-templates.sh
|