mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
133 lines
2.9 KiB
YAML
133 lines
2.9 KiB
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches: [master, develop]
|
|
pull_request:
|
|
branches: [master, develop]
|
|
|
|
jobs:
|
|
lint:
|
|
name: 'lint'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 14
|
|
cache: 'npm'
|
|
- run: npm ci
|
|
- run: npm run lint
|
|
|
|
build:
|
|
name: 'build'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 14
|
|
cache: 'npm'
|
|
- run: npm ci
|
|
- run: npm run build --configuration=production,e2e
|
|
|
|
test-aca-content:
|
|
needs: [lint, build]
|
|
name: 'test: aca-content'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 14
|
|
cache: 'npm'
|
|
- run: npm ci
|
|
- run: npm test aca-content -- --browsers=ChromeHeadless --watch=false $TEST_OPTS
|
|
|
|
test-aos:
|
|
needs: [lint, build]
|
|
name: 'test: adf-office-services-ext'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 14
|
|
cache: 'npm'
|
|
- run: npm ci
|
|
- run: npm test adf-office-services-ext -- --browsers=ChromeHeadless --watch=false $TEST_OPTS
|
|
|
|
test-aca-shared:
|
|
needs: [lint, build]
|
|
name: 'test: aca-shared'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 14
|
|
cache: 'npm'
|
|
- run: npm ci
|
|
- run: npm test aca-shared -- --browsers=ChromeHeadless --watch=false $TEST_OPTS
|
|
|
|
test-aca-folder-rules:
|
|
needs: [lint, build]
|
|
name: 'test: aca-folder-rules'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 14
|
|
cache: 'npm'
|
|
- run: npm ci
|
|
- run: npm test aca-folder-rules -- --browsers=ChromeHeadless --watch=false $TEST_OPTS
|
|
|
|
test-aca-preview:
|
|
needs: [lint, build]
|
|
name: 'test: aca-preview'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 14
|
|
cache: 'npm'
|
|
- run: npm ci
|
|
- run: npm test aca-preview -- --browsers=ChromeHeadless --watch=false $TEST_OPTS
|