mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
devel pipe
This commit is contained in:
@@ -50,9 +50,13 @@ env:
|
|||||||
NODE_OPTIONS: "--max-old-space-size=5120"
|
NODE_OPTIONS: "--max-old-space-size=5120"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-everything:
|
run-e2e:
|
||||||
uses: ./.github/workflows/pull-request.yml
|
uses: ./.github/workflows/pull-request.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
release:
|
||||||
|
uses: ./.github/workflows/release.yml
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
npm-check-bundle:
|
npm-check-bundle:
|
||||||
# needs: [ test-everything ]
|
# needs: [ test-everything ]
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
name: "release"
|
name: "release"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_call:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [closed]
|
types: [closed]
|
||||||
branches:
|
branches:
|
||||||
@@ -55,30 +56,26 @@ env:
|
|||||||
NODE_OPTIONS: "--max-old-space-size=5120"
|
NODE_OPTIONS: "--max-old-space-size=5120"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
# build:
|
||||||
timeout-minutes: 20
|
# timeout-minutes: 20
|
||||||
if: github.event.pull_request.merged == true
|
# if: github.event.pull_request.merged == true
|
||||||
name: "Build Components"
|
# name: "Build Components"
|
||||||
runs-on: ubuntu-22.04
|
# runs-on: ubuntu-22.04
|
||||||
steps:
|
# steps:
|
||||||
- name: Checkout repository
|
# - name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
# uses: actions/checkout@v3
|
||||||
with:
|
# with:
|
||||||
fetch-depth: 0
|
# fetch-depth: 0
|
||||||
- uses: ./.github/actions/setup
|
# - uses: ./.github/actions/setup
|
||||||
- run: npm -v
|
# - run: npm -v
|
||||||
- name: install
|
# - name: install
|
||||||
run: |
|
# run: |
|
||||||
npm ci
|
# npm ci
|
||||||
nx run cli:bundle
|
# nx run cli:bundle
|
||||||
nx run testing:bundle
|
# nx run testing:bundle
|
||||||
- run: npx nx affected --target=lint $NX_CALCULATION_FLAGS
|
# - uses: ./.github/actions/upload-build-artifacts
|
||||||
- run: nx affected:build $NX_CALCULATION_FLAGS --prod --exclude="demoshell"
|
|
||||||
- run: nx $NX_CALCULATION_FLAGS build demoshell --configuration production
|
|
||||||
- run: nx build demoshell --configuration production
|
|
||||||
- uses: ./.github/actions/upload-build-artifacts
|
|
||||||
|
|
||||||
push-demoshell:
|
release-demoshell:
|
||||||
needs: [build]
|
needs: [build]
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
if: github.event.pull_request.merged == true
|
if: github.event.pull_request.merged == true
|
||||||
@@ -101,10 +98,9 @@ jobs:
|
|||||||
nx build demoshell --configuration production
|
nx build demoshell --configuration production
|
||||||
. ./scripts/travis/release/docker-tag.sh
|
. ./scripts/travis/release/docker-tag.sh
|
||||||
echo $TAGS
|
echo $TAGS
|
||||||
set -u;
|
|
||||||
./scripts/travis/release/release-demoshell-docker.sh
|
./scripts/travis/release/release-demoshell-docker.sh
|
||||||
|
|
||||||
push-storybook:
|
release-storybook:
|
||||||
needs: [build]
|
needs: [build]
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
if: github.event.pull_request.merged == true
|
if: github.event.pull_request.merged == true
|
||||||
@@ -126,7 +122,6 @@ jobs:
|
|||||||
nx run stories:build-storybook --configuration ci
|
nx run stories:build-storybook --configuration ci
|
||||||
. ./scripts/travis/release/docker-tag.sh
|
. ./scripts/travis/release/docker-tag.sh
|
||||||
echo $TAGS
|
echo $TAGS
|
||||||
set -u;
|
|
||||||
./scripts/travis/release/release-storybook-docker.sh
|
./scripts/travis/release/release-storybook-docker.sh
|
||||||
|
|
||||||
npm-release:
|
npm-release:
|
||||||
@@ -166,4 +161,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: ./.github/actions/download-build-artifacts
|
- uses: ./.github/actions/download-build-artifacts
|
||||||
- uses: ./.github/actions/npm-check-bundle
|
- name: Check npm bundle
|
||||||
|
run: |
|
||||||
|
export ADF_VERSION=$(npm view @alfresco/adf-core@${TAG_NPM} version)
|
||||||
|
./scripts/travis/build/npm-check-bundles.sh -v ${ADF_VERSION}
|
||||||
|
|||||||
Reference in New Issue
Block a user