diff --git a/.github/PSModule.yml b/.github/PSModule.yml index 0e0770314..9a91761c3 100644 --- a/.github/PSModule.yml +++ b/.github/PSModule.yml @@ -1,3 +1,7 @@ +# This file is used to configure the Process-PSModule workflow. +# Reference: +# - https://github.com/PSModule/Process-PSModule?tab=readme-ov-file#configuration + Test: CodeCoverage: PercentTarget: 50 diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f57e1e959..53188fef9 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,5 +7,8 @@ version: 2 updates: - package-ecosystem: github-actions # See documentation for possible values directory: / # Location of package manifests + labels: + - dependencies + - github-actions schedule: interval: weekly diff --git a/.github/linters/.jscpd.json b/.github/linters/.jscpd.json deleted file mode 100644 index 66a3a2451..000000000 --- a/.github/linters/.jscpd.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "threshold": 0, - "reporters": [ - "consoleFull" - ], - "ignore": [ - "**/tests/**", - "**/src/classes/**", - "**/src/functions/**", - "**/tools/utilities/**", - "**/.github/workflows/Nightly-Run.yml", - "**/.github/workflows/Process-PSModule.yml" - ], - "absolute": true -} diff --git a/.github/workflows/Linter.yml b/.github/workflows/Linter.yml deleted file mode 100644 index 8017f6334..000000000 --- a/.github/workflows/Linter.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Linter - -run-name: "Linter - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}" - -on: [pull_request] - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - contents: read - packages: read - statuses: write - -jobs: - Lint: - name: Lint code base - runs-on: ubuntu-latest - steps: - - name: Checkout repo - uses: actions/checkout@v5 - with: - fetch-depth: 0 - - - name: Lint code base - uses: super-linter/super-linter@latest - env: - GITHUB_TOKEN: ${{ github.token }} - FILTER_REGEX_EXCLUDE: '.*(/examples/|/src/classes/|/tools/).*' - VALIDATE_JSON_PRETTIER: false - VALIDATE_MARKDOWN_PRETTIER: false - VALIDATE_YAML_PRETTIER: false diff --git a/.github/workflows/Nightly-Run.yml b/.github/workflows/Nightly-Run.yml deleted file mode 100644 index eec09daf1..000000000 --- a/.github/workflows/Nightly-Run.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Nightly Run - -on: - workflow_dispatch: - schedule: - - cron: '0 0 * * *' - -permissions: - contents: read - pull-requests: write - statuses: write - -jobs: - Process-PSModule: - uses: PSModule/Process-PSModule/.github/workflows/CI.yml@v4 - secrets: - APIKey: ${{ secrets.APIKey }} - TEST_APP_ENT_CLIENT_ID: ${{ secrets.TEST_APP_ENT_CLIENT_ID }} - TEST_APP_ENT_PRIVATE_KEY: ${{ secrets.TEST_APP_ENT_PRIVATE_KEY }} - TEST_APP_ORG_CLIENT_ID: ${{ secrets.TEST_APP_ORG_CLIENT_ID }} - TEST_APP_ORG_PRIVATE_KEY: ${{ secrets.TEST_APP_ORG_PRIVATE_KEY }} - TEST_USER_ORG_FG_PAT: ${{ secrets.TEST_USER_ORG_FG_PAT }} - TEST_USER_USER_FG_PAT: ${{ secrets.TEST_USER_USER_FG_PAT }} - TEST_USER_PAT: ${{ secrets.TEST_USER_PAT }} diff --git a/.github/workflows/Process-PSModule.yml b/.github/workflows/Process-PSModule.yml index 2fdfe0422..a2a78ca26 100644 --- a/.github/workflows/Process-PSModule.yml +++ b/.github/workflows/Process-PSModule.yml @@ -1,8 +1,9 @@ name: Process-PSModule -run-name: "Process-PSModule - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}" - on: + workflow_dispatch: + schedule: + - cron: '0 0 * * *' pull_request: branches: - main @@ -26,13 +27,5 @@ permissions: jobs: Process-PSModule: - uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v4 - secrets: - APIKey: ${{ secrets.APIKey }} - TEST_APP_ENT_CLIENT_ID: ${{ secrets.TEST_APP_ENT_CLIENT_ID }} - TEST_APP_ENT_PRIVATE_KEY: ${{ secrets.TEST_APP_ENT_PRIVATE_KEY }} - TEST_APP_ORG_CLIENT_ID: ${{ secrets.TEST_APP_ORG_CLIENT_ID }} - TEST_APP_ORG_PRIVATE_KEY: ${{ secrets.TEST_APP_ORG_PRIVATE_KEY }} - TEST_USER_ORG_FG_PAT: ${{ secrets.TEST_USER_ORG_FG_PAT }} - TEST_USER_USER_FG_PAT: ${{ secrets.TEST_USER_USER_FG_PAT }} - TEST_USER_PAT: ${{ secrets.TEST_USER_PAT }} + uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v5 + secrets: inherit