Skip to content

Commit

Permalink
dump
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopocarlini committed May 29, 2024
1 parent 2895df0 commit 83c0057
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/cd_next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,23 @@ permissions:

jobs:

release:
name: Create a New Release
runs-on: ubuntu-latest
needs: [ setup ]
steps:
- name: Make Release
id: release
uses: pagopa/github-actions-template/node-release@v1.13.1
with:
semver: buildNumber
github_token: ${{ secrets.BOT_TOKEN_GITHUB }}
skip_ci: false
prerelease: true

deploy:
needs:
- release
name: Deploy on CDN
uses: ./.github/workflows/deploy_on_cdn.yml
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_code_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
uses: ./.github/workflows/ci_integration_test.yml
with:
environment: 'staging'
environment: 'local'
notify: false
secrets: inherit

Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/ci_integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ on:
type: choice
description: Select the Environment
options:
- staging
- local
- dev
- uat
canary:
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
yarn install
if [ "${{ inputs.environment }}" = "staging" ]; then
if [ "${{ inputs.environment }}" = "local" ]; then
export KEY_PEM='${{ secrets.DEV_KEY_PEM }}'
export FE_URL=https://icy-island-050778e03-${{ github.event.number }}.westeurope.5.azurestaticapps.net/ui
fi
Expand All @@ -88,11 +88,19 @@ jobs:
yarn run cucumber
print_debug:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"

notify:
needs: [ integration_test ]
runs-on: ubuntu-latest
name: Notify
if: ${{ always() && (inputs.notify || github.event.inputs == null) }}
if: ${{ always() && (inputs.notify == true || github.event.inputs == null) }}
steps:
- name: Report Status
uses: ravsamhq/notify-slack-action@v2
Expand Down

0 comments on commit 83c0057

Please sign in to comment.