From 4b60617ce332c1c965bcee52782dc65372784afd Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Sun, 4 May 2025 11:08:07 -0400 Subject: [PATCH] move to forgejo actions, need to convert things still --- .forgejo/ISSUE_TEMPLATE/bug_report.md | 28 +++++++++++++++++++ .forgejo/ISSUE_TEMPLATE/feature_request.md | 24 ++++++++++++++++ .forgejo/dependabot.yml | 6 ++++ .forgejo/pull_request_template.md | 7 +++++ .forgejo/workflows/analyze.yml | 32 ++++++++++++++++++++++ .forgejo/workflows/build.yml | 21 ++++++++++++++ .forgejo/workflows/publish.yml | 24 ++++++++++++++++ 7 files changed, 142 insertions(+) create mode 100644 .forgejo/ISSUE_TEMPLATE/bug_report.md create mode 100644 .forgejo/ISSUE_TEMPLATE/feature_request.md create mode 100644 .forgejo/dependabot.yml create mode 100644 .forgejo/pull_request_template.md create mode 100644 .forgejo/workflows/analyze.yml create mode 100644 .forgejo/workflows/build.yml create mode 100644 .forgejo/workflows/publish.yml diff --git a/.forgejo/ISSUE_TEMPLATE/bug_report.md b/.forgejo/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..175e13a --- /dev/null +++ b/.forgejo/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,28 @@ +--- +name: Bug Report +about: Report a problem with this project +title: '' +labels: '' +assignees: '' + +--- + +### Expected Behaviour + +Please provide a description of the expected behaviour. + +### Actual Behavior + +Please provide a description of the actual behaviour. + +### Steps To Reproduce + +Please provide the steps to reproduce the issue. + +### Environment + +Please provide relevant details of your environment: + +* keycloak version +* java version +* platform (O/S, etc.) diff --git a/.forgejo/ISSUE_TEMPLATE/feature_request.md b/.forgejo/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..0f9d065 --- /dev/null +++ b/.forgejo/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,24 @@ +--- +name: Feature Request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +### Desired Behaviour + +Please provide a description of the desired behaviour. + +### Actual Behavior + +Please provide a description of the actual behaviour. + +### Environment + +Please provide relevant details of your environment: + +* keycloak version +* java version +* platform (O/S, etc.) diff --git a/.forgejo/dependabot.yml b/.forgejo/dependabot.yml new file mode 100644 index 0000000..066653d --- /dev/null +++ b/.forgejo/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "maven" + directory: "/" # Location of package manifests + schedule: + interval: "daily" diff --git a/.forgejo/pull_request_template.md b/.forgejo/pull_request_template.md new file mode 100644 index 0000000..95c24f1 --- /dev/null +++ b/.forgejo/pull_request_template.md @@ -0,0 +1,7 @@ +### Description + +Please provide a description that details the content of the pull request. + +Please also indicate whether any issues are fixed. + +Fixes # (issue) diff --git a/.forgejo/workflows/analyze.yml b/.forgejo/workflows/analyze.yml new file mode 100644 index 0000000..adf5000 --- /dev/null +++ b/.forgejo/workflows/analyze.yml @@ -0,0 +1,32 @@ +name: analyze + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + schedule: + - cron: '24 21 * * 6' + +jobs: + analyze: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + language: [ 'java' ] + permissions: + actions: read + contents: read + security-events: write + steps: + - name: checkout repository + uses: actions/checkout@v2 + - name: initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: ${{ matrix.language }} + - name: autobuild + uses: github/codeql-action/autobuild@v1 + - name: perform CodeQL analysis + uses: github/codeql-action/analyze@v1 diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml new file mode 100644 index 0000000..e3b6974 --- /dev/null +++ b/.forgejo/workflows/build.yml @@ -0,0 +1,21 @@ +name: build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout repository + uses: actions/checkout@v2 + - name: set up java + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + - name: build with maven + run: mvn --batch-mode --file pom.xml package diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml new file mode 100644 index 0000000..d60d6e8 --- /dev/null +++ b/.forgejo/workflows/publish.yml @@ -0,0 +1,24 @@ +name: publish + +on: + release: + types: [created] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout repository + uses: actions/checkout@v2 + - name: set up java + uses: actions/setup-java@v1 + with: + java-version: '11' + - name: build with maven + run: mvn --batch-mode --file pom.xml package + - name: upload to release + uses: skx/github-action-publish-binaries@master + env: + GITHUB_TOKEN: ${{ github.token }} + with: + args: 'bundle/target/*.ear'