-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[patch] CARD-72: add workflow to sec svc
- Loading branch information
1 parent
92f1f0b
commit ced4492
Showing
6 changed files
with
134 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: develop | ||
on: | ||
push: | ||
branches: [ develop ] | ||
jobs: | ||
test: | ||
name: test | ||
permissions: | ||
packages: read | ||
secrets: inherit | ||
uses: ./.github/workflows/step-test.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: main | ||
on: | ||
push: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
jobs: | ||
test: | ||
name: test | ||
permissions: | ||
packages: read | ||
secrets: inherit | ||
uses: ./.github/workflows/step-test.yaml | ||
release: | ||
needs: test | ||
name: release | ||
permissions: | ||
packages: write | ||
contents: write | ||
uses: ./.github/workflows/step-release.yaml | ||
merge: | ||
needs: release | ||
name: merge | ||
permissions: | ||
contents: write | ||
uses: ./.github/workflows/step-merge.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: merge | ||
on: | ||
workflow_call: | ||
jobs: | ||
merge: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v3 | ||
- name: Merge into Develop ➡️ | ||
uses: devmasx/merge-branch@master | ||
with: | ||
type: now | ||
from_branch: main | ||
target_branch: develop | ||
message: Merge version bump into develop | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: release | ||
on: | ||
workflow_call: | ||
jobs: | ||
release: | ||
concurrency: ci-${{ github.ref }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
- name: Set-up Java ☕ | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: corretto | ||
java-version: 21 | ||
- name: Set-up Gradle 🔨 | ||
uses: gradle/actions/setup-gradle@v3 | ||
- name: Set-up Git 🐵 | ||
run: | | ||
git config user.name "GitHub Actions Bot" | ||
git config user.email "<>" | ||
- name: Release 🏷️ | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: ./gradlew release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: test | ||
on: | ||
workflow_call: | ||
jobs: | ||
test: | ||
concurrency: ci-${{ github.ref }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
- name: Set-up Java ☕ | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: corretto | ||
java-version: 21 | ||
- name: Set-up Gradle 🔨 | ||
uses: gradle/actions/setup-gradle@v3 | ||
- name: Test 📐 | ||
env: | ||
GPR_USER: ${{ secrets.GPR_USER }} | ||
GPR_KEY: ${{ secrets.GPR_KEY }} | ||
run: ./gradlew test -i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters