devel pipe

This commit is contained in:
Marco Carrozzo
2022-12-15 15:23:43 +01:00
parent 8d2b543f3e
commit 34e8cc99f6
2 changed files with 32 additions and 30 deletions
+5 -1
View File
@@ -50,9 +50,13 @@ env:
NODE_OPTIONS: "--max-old-space-size=5120"
jobs:
test-everything:
run-e2e:
uses: ./.github/workflows/pull-request.yml
secrets: inherit
release:
uses: ./.github/workflows/release.yml
secrets: inherit
npm-check-bundle:
# needs: [ test-everything ]
timeout-minutes: 10
+27 -29
View File
@@ -1,6 +1,7 @@
name: "release"
on:
workflow_call:
pull_request:
types: [closed]
branches:
@@ -55,30 +56,26 @@ env:
NODE_OPTIONS: "--max-old-space-size=5120"
jobs:
build:
timeout-minutes: 20
if: github.event.pull_request.merged == true
name: "Build Components"
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- run: npm -v
- name: install
run: |
npm ci
nx run cli:bundle
nx run testing:bundle
- run: npx nx affected --target=lint $NX_CALCULATION_FLAGS
- 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
# build:
# timeout-minutes: 20
# if: github.event.pull_request.merged == true
# name: "Build Components"
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - uses: ./.github/actions/setup
# - run: npm -v
# - name: install
# run: |
# npm ci
# nx run cli:bundle
# nx run testing:bundle
# - uses: ./.github/actions/upload-build-artifacts
push-demoshell:
release-demoshell:
needs: [build]
timeout-minutes: 10
if: github.event.pull_request.merged == true
@@ -100,11 +97,10 @@ jobs:
run: |
nx build demoshell --configuration production
. ./scripts/travis/release/docker-tag.sh
echo $TAGS
set -u;
echo $TAGS
./scripts/travis/release/release-demoshell-docker.sh
push-storybook:
release-storybook:
needs: [build]
timeout-minutes: 10
if: github.event.pull_request.merged == true
@@ -125,8 +121,7 @@ jobs:
run: |
nx run stories:build-storybook --configuration ci
. ./scripts/travis/release/docker-tag.sh
echo $TAGS
set -u;
echo $TAGS
./scripts/travis/release/release-storybook-docker.sh
npm-release:
@@ -166,4 +161,7 @@ jobs:
with:
fetch-depth: 0
- 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}