Skip to content

Commit

Permalink
ci: scala steward DCO and integration tests permission change
Browse files Browse the repository at this point in the history
Signed-off-by: Yurii Shynbuiev <yurii.shynbuiev@iohk.io>
  • Loading branch information
yshyn-iohk committed May 21, 2024
1 parent c5df2a8 commit 0ab17b4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 11 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ defaults:
shell: bash
working-directory: "tests/integration-tests"

permissions:
checks: write
pull-requests: write

jobs:
run-integration-tests:
name: "Run integration tests"
Expand Down Expand Up @@ -64,16 +68,16 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '19'
distribution: "zulu"
java-version: "19"

- name: Run integration tests
env:
PRISM_NODE_VERSION: ${{ steps.build_local_cloud_agent.outputs.prism_node_version }}
OPEN_ENTERPRISE_AGENT_VERSION: ${{ steps.build_local_cloud_agent.outputs.open_enterprise_agent_version }}
GITHUB_ACTOR: hyperledger-bot
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# continue-on-error: true
# continue-on-error: true
run: |
./gradlew test --tests "IntegrationTestsRunner"
Expand Down Expand Up @@ -143,6 +147,6 @@ jobs:
Failed: ${{ steps.analyze_test_results.outputs.failures }}
Errors in tests: ${{ steps.analyze_test_results.outputs.errors }}
Skipped (known bugs): ${{ steps.analyze_test_results.outputs.skipped }}
SLACK_TITLE: "Open Enterprise Agent Integration Tests: ${{ steps.analyze_test_results.outputs.conclusion }}"
SLACK_TITLE: "Identus Cloud Agent Integration Tests: ${{ steps.analyze_test_results.outputs.conclusion }}"
SLACK_USERNAME: circleci
SLACK_WEBHOOK: ${{ secrets.E2E_TESTS_SLACK_WEBHOOK }}
31 changes: 24 additions & 7 deletions .github/workflows/scala-steward.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,38 @@ on:
- cron: "0 0 * * 0"
workflow_dispatch:

permissions:
contents: write
issues: write
pull-requests: write

jobs:
scala-steward:
runs-on: ubuntu-latest
name: Launch Scala Steward
steps:
- name: Checkout the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
persist-credentials: false

- uses: crazy-max/ghaction-import-gpg@v3
- uses: crazy-max/ghaction-import-gpg@v6
id: import_gpg
with:
gpg-private-key: ${{ secrets.HYP_BOT_GPG_PRIVATE }}
gpg_private_key: ${{ secrets.HYP_BOT_GPG_PRIVATE }}
passphrase: ${{ secrets.HYP_BOT_GPG_PASSWORD }}
git-user-signingkey: true
git-commit-gpgsign: true
git_config_global: true
git_tag_gpgsign: true
git_user_signingkey: true
git_commit_gpgsign: true
git_push_gpgsign: true

- name: GPG user IDs
run: |
echo "fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}"
echo "keyid: ${{ steps.import_gpg.outputs.keyid }}"
echo "name: ${{ steps.import_gpg.outputs.name }}"
echo "email: ${{ steps.import_gpg.outputs.email }}"
- name: Launch Scala Steward
uses: scala-steward-org/scala-steward-action@v2
Expand All @@ -31,6 +46,8 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
sign-commits: true
signing-key: ${{ steps.import_gpg.outputs.keyid }}
author-email: ${{ steps.import_gpg.outputs.email }}
author-name: ${{ steps.import_gpg.outputs.name }}
branches: main
repo-config: .scala-steward.conf

0 comments on commit 0ab17b4

Please sign in to comment.