Skip to content

Updated dependencies for logic module #3

Updated dependencies for logic module

Updated dependencies for logic module #3

name: Pip.Services Logic GO Delivery
# Configure trigger rules
on:
push:
branches:
- main
paths:
- 'pip-services4-logic-go/**'
- '!pip-services4-logic-go/README.md'
workflow_dispatch:
env:
IS_MONOREPO: true
jobs:
# Setup job
setup:
runs-on: ubuntu-22.04
if: "!contains(github.event.head_commit.message, '[skip-ci]')"
steps:
- name: Checkout source code
uses: actions/checkout@main
- name: Pull delivery scripts
shell: bash
run: |
rm -rf pip-services4-logic-go/script-delivery-ps
git clone ${{ secrets.SCRIPTS_DELIVERY_PS_GIT_URL }} eic-templates-cicd-ps
cp -r eic-templates-cicd-ps/script-delivery-ps pip-services4-logic-go/script-delivery-ps
- name: Execute increment script
shell: bash
run: pip-services4-logic-go/script-delivery-ps/setup/increment/increment.ps1
- name: Execute prerequisites script
shell: bash
run: pip-services4-logic-go/script-delivery-ps/setup/prereqs/prereqs.ps1
- name: Cache intermediate logic
uses: actions/cache@v3
with:
path: |
pip-services4-logic-go/script-delivery-ps
pip-services4-logic-go/component*.json
key: delivery-${{ github.run_id }}-${{ github.run_attempt }}
# Authoring job
authoring:
needs: setup
runs-on: ubuntu-22.04
steps:
- name: Checkout source code
uses: actions/checkout@main
- name: Get cached intermediate logic
uses: actions/cache@v3
with:
path: |
pip-services4-logic-go/script-delivery-ps
pip-services4-logic-go/component*.json
key: delivery-${{ github.run_id }}-${{ github.run_attempt }}
- name: Execute build script
shell: bash
run: pip-services4-logic-go/script-delivery-ps/authoring/build/build.ps1
- name: Execute test script
shell: bash
run: pip-services4-logic-go/script-delivery-ps/authoring/test/test.ps1
- name: Execute package script
shell: bash
run: pip-services4-logic-go/script-delivery-ps/authoring/package/package.ps1
- name: Execute publish script
shell: bash
run: pip-services4-logic-go/script-delivery-ps/authoring/publish/publish.ps1
- name: Execute tag script
shell: bash
run: pip-services4-logic-go/script-delivery-ps/authoring/tag/tag.ps1
- name: Execute clean script
if: always()
shell: bash
run: pip-services4-logic-go/script-delivery-ps/authoring/clean/clean.ps1
# Measure job
measure:
needs: authoring
if: always()
runs-on: ubuntu-22.04
steps:
- name: Get cached intermediate logic
uses: actions/cache@v3
with:
path: |
pip-services4-logic-go/script-delivery-ps
pip-services4-logic-go/component*.json
key: delivery-${{ github.run_id }}-${{ github.run_attempt }}
- name: Execute measure script
env:
NAME: $(echo '${{ github.repository }}' | awk -F '/' '{print $2}')
run: pip-services4-logic-go/script-delivery-ps/measure/measure.ps1 ${{ github.repository_owner }} ${{ env.NAME }} ${{ secrets.AWS_ACCESS_KEY_ID }} ${{ secrets.AWS_SECRET_ACCESS_KEY }} ${{ secrets.AWS_S3_BUCKET }} ${{ secrets.AWS_S3_BUCKET_FOLDER }} ${{ secrets.GITHUB_TOKEN }}
shell: bash