From 6fe6e7162ef15cf92c2ca912cda77c4e31e1dd4b Mon Sep 17 00:00:00 2001 From: Stefano Sinatti Date: Tue, 10 Sep 2024 12:45:43 +0200 Subject: [PATCH] Initial commit --- .github/settings.yml | 71 +++++++++++++++++++++ .github/workflows/compile.yml | 7 ++ .github/workflows/github-release.yml | 9 +++ .github/workflows/publiccode-validation.yml | 14 ++++ .github/workflows/release.yml | 14 ++++ README.md | 4 ++ 6 files changed, 119 insertions(+) create mode 100644 .github/settings.yml create mode 100644 .github/workflows/compile.yml create mode 100644 .github/workflows/github-release.yml create mode 100644 .github/workflows/publiccode-validation.yml create mode 100644 .github/workflows/release.yml create mode 100644 README.md diff --git a/.github/settings.yml b/.github/settings.yml new file mode 100644 index 0000000..62804b3 --- /dev/null +++ b/.github/settings.yml @@ -0,0 +1,71 @@ +# These settings are synced to GitHub by https://probot.github.io/apps/settings/ + +repository: + # See https://docs.github.com/en/rest/reference/repos#update-a-repository for all available settings. + + # Either `true` to make the repository private, or `false` to make it public. + private: true + + # Either `true` to enable the wiki for this repository, `false` to disable it. + has_wiki: true + + # Either `true` to enable downloads for this repository, `false` to disable them. + has_downloads: true + + # Updates the default branch for this repository. + default_branch: master + + # Either `true` to allow squash-merging pull requests, or `false` to prevent + # squash-merging. + allow_squash_merge: true + + # Either `true` to allow merging pull requests with a merge commit, or `false` + # to prevent merging pull requests with merge commits. + allow_merge_commit: true + + # Either `true` to allow rebase-merging pull requests, or `false` to prevent + # rebase-merging. + allow_rebase_merge: true + + # Either `true` to enable automatic deletion of branches on merge, or `false` to disable + delete_branch_on_merge: true + + # Either `true` to enable automated security fixes, or `false` to disable + # automated security fixes. + enable_automated_security_fixes: true + + # Either `true` to enable vulnerability alerts, or `false` to disable + # vulnerability alerts. + enable_vulnerability_alerts: true + +# Collaborators: give specific users access to this repository. +# See https://docs.github.com/en/rest/reference/repos#add-a-repository-collaborator for available options +# collaborators: + # - username: bkeepers + # permission: push + # - username: hubot + # permission: pull + + # Note: `permission` is only valid on organization-owned repositories. + # The permission to grant the collaborator. Can be one of: + # * `pull` - can pull, but not push to or administer this repository. + # * `push` - can pull and push, but not administer this repository. + # * `admin` - can pull, push and administer this repository. + # * `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions. + # * `triage` - Recommended for contributors who need to proactively manage issues and pull requests without write access. + +# See https://docs.github.com/en/rest/reference/teams#add-or-update-team-repository-permissions for available options +teams: + - name: RegioneER/parer + # The permission to grant the team. Can be one of: + # * `pull` - can pull, but not push to or administer this repository. + # * `push` - can pull and push, but not administer this repository. + # * `admin` - can pull, push and administer this repository. + # * `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions. + # * `triage` - Recommended for contributors who need to proactively manage issues and pull requests without write access. + permission: triage + - name: RegioneER/parer-ci + permission: push + - name: RegioneER/parer-dev + permission: admin + diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml new file mode 100644 index 0000000..bde4606 --- /dev/null +++ b/.github/workflows/compile.yml @@ -0,0 +1,7 @@ +name: Maven Compile +on: push +jobs: + compile: + uses: RegioneER/parer-github-template/.github/workflows/compile.yml@v1 + with: + java: '8' diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml new file mode 100644 index 0000000..0d97293 --- /dev/null +++ b/.github/workflows/github-release.yml @@ -0,0 +1,9 @@ +name: GitHub Release +on: + pull_request: + branches: + - main + - master +jobs: + release: + uses: RegioneER/parer-github-template/.github/workflows/github-release.yml@v1 diff --git a/.github/workflows/publiccode-validation.yml b/.github/workflows/publiccode-validation.yml new file mode 100644 index 0000000..7414e79 --- /dev/null +++ b/.github/workflows/publiccode-validation.yml @@ -0,0 +1,14 @@ +on: [pull_request] + +jobs: + publiccode_validation: + runs-on: ubuntu-latest + name: publiccode validation + steps: + - uses: actions/checkout@v2 + - uses: italia/publiccode-parser-action@v1 + with: + publiccode: 'publiccode.yml' # relative path to your publiccode.yml + comment-on-pr: true + env: + REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..5b0c6f9 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,14 @@ +name: Maven Release +on: + workflow_dispatch: + inputs: + version: + description: "Version number" + required: true + type: string +jobs: + release: + uses: RegioneER/parer-github-template/.github/workflows/release.yml@v1 + with: + version: ${{ inputs.version }} + java: '8' diff --git a/README.md b/README.md new file mode 100644 index 0000000..8fc088f --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# ParER Github template + +Progetto template per l'inizializzazione dei repository ParER. +Contiene il Workflow Github standard previsto dal flusso CI/CD modella sui processi di gestione dei progetti GIT di ParER.