mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
gha: cleanup and setup improvements (#2905)
This commit is contained in:
parent
b50c4e993d
commit
02196ce733
51
.github/workflows/test.yml
vendored
51
.github/workflows/test.yml
vendored
@ -8,7 +8,7 @@ on:
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: 'Lint'
|
||||
name: 'lint'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@ -24,9 +24,8 @@ jobs:
|
||||
- run: npm ci
|
||||
- run: npm run lint
|
||||
|
||||
test-aca-content:
|
||||
needs: lint
|
||||
name: aca-content
|
||||
build:
|
||||
name: 'build'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@ -40,11 +39,29 @@ jobs:
|
||||
node-version: 14
|
||||
cache: 'npm'
|
||||
- run: npm ci
|
||||
- run: npm test aca-content -- --browsers=ChromeHeadless --watch=false
|
||||
- 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
|
||||
name: adf-office-services-ext
|
||||
needs: [lint, build]
|
||||
name: 'test: adf-office-services-ext'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@ -58,11 +75,11 @@ jobs:
|
||||
node-version: 14
|
||||
cache: 'npm'
|
||||
- run: npm ci
|
||||
- run: npm test adf-office-services-ext -- --browsers=ChromeHeadless --watch=false
|
||||
- run: npm test adf-office-services-ext -- --browsers=ChromeHeadless --watch=false $TEST_OPTS
|
||||
|
||||
test-aca-shared:
|
||||
needs: lint
|
||||
name: aca-shared
|
||||
needs: [lint, build]
|
||||
name: 'test: aca-shared'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@ -76,11 +93,11 @@ jobs:
|
||||
node-version: 14
|
||||
cache: 'npm'
|
||||
- run: npm ci
|
||||
- run: npm test aca-shared -- --browsers=ChromeHeadless --watch=false
|
||||
- run: npm test aca-shared -- --browsers=ChromeHeadless --watch=false $TEST_OPTS
|
||||
|
||||
test-aca-settings:
|
||||
needs: lint
|
||||
name: aca-settings
|
||||
needs: [lint, build]
|
||||
name: 'test: aca-settings'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@ -94,11 +111,11 @@ jobs:
|
||||
node-version: 14
|
||||
cache: 'npm'
|
||||
- run: npm ci
|
||||
- run: npm test aca-settings -- --browsers=ChromeHeadless --watch=false
|
||||
- run: npm test aca-settings -- --browsers=ChromeHeadless --watch=false $TEST_OPTS
|
||||
|
||||
test-aca-folder-rules:
|
||||
needs: lint
|
||||
name: aca-folder-rules
|
||||
needs: [lint, build]
|
||||
name: 'test: aca-folder-rules'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@ -112,4 +129,4 @@ jobs:
|
||||
node-version: 14
|
||||
cache: 'npm'
|
||||
- run: npm ci
|
||||
- run: npm test aca-folder-rules -- --browsers=ChromeHeadless --watch=false
|
||||
- run: npm test aca-folder-rules -- --browsers=ChromeHeadless --watch=false $TEST_OPTS
|
||||
|
32
.travis.yml
32
.travis.yml
@ -58,44 +58,12 @@ env:
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- stage: Quality and Unit tests
|
||||
name: 'Code quality checks'
|
||||
script: npm ci && npm run lint
|
||||
|
||||
- stage: Quality and Unit tests
|
||||
name: 'Build (without animation)'
|
||||
before_script: npx @alfresco/adf-cli update-commit-sha --pointer "HEAD" --pathPackage "$(pwd)"
|
||||
script: npm ci && npm run build -- $BUILD_OPTS
|
||||
after_success: ./scripts/ci/utils/artifact-to-s3.sh -a $CONTENT_CE_DIST_PATH -o "$S3_DBP_FOLDER/alfresco-content-app.tar.bz2" || travis_terminate 1
|
||||
cache: false
|
||||
|
||||
- stage: Quality and Unit tests
|
||||
name: 'Unit tests: aos'
|
||||
script: npm ci && ng test adf-office-services-ext $TEST_OPTS
|
||||
cache: false
|
||||
|
||||
- stage: Quality and Unit tests
|
||||
name: 'Unit tests: aca-shared'
|
||||
script: npm ci && ng test aca-shared $TEST_OPTS
|
||||
cache: false
|
||||
|
||||
- stage: Quality and Unit tests
|
||||
name: 'Unit tests: aca-settings'
|
||||
script: npm ci && ng test aca-settings $TEST_OPTS
|
||||
cache: false
|
||||
|
||||
- stage: Quality and Unit tests
|
||||
name: 'Unit tests: aca-folder-rules'
|
||||
script: npm ci && ng test aca-folder-rules $TEST_OPTS
|
||||
cache: false
|
||||
|
||||
- stage: Quality and Unit tests
|
||||
name: 'Unit tests: aca-content'
|
||||
script:
|
||||
- npm ci
|
||||
- ng test aca-content $TEST_OPTS
|
||||
cache: false
|
||||
|
||||
- stage: e2e
|
||||
name: 'Test Suites: authentication,listViews,navigation,application'
|
||||
before_script:
|
||||
|
Loading…
x
Reference in New Issue
Block a user