Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/auto-translate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true

# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
permissions: {}

jobs:
translate:
name: 'Check and update translations'
timeout-minutes: 120
permissions:
contents: write
pull-requests: write
contents: write # Required for the reusable translations workflow to push the auto-translate branch and commits.
pull-requests: write # Required for gh pr list/update/create flows inside the reusable workflow (GITHUB_TOKEN).
uses: newfold-labs/workflows/.github/workflows/reusable-translations.yml@main
with:
text_domain: 'wp-module-data'
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/brand-plugin-test-playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@ on:
- main
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true

# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
permissions: {}

jobs:
setup:
name: Setup
runs-on: ubuntu-latest
permissions:
contents: read
timeout-minutes: 10
permissions: {} # No checkout or GitHub API usage; only derives the branch name from workflow ref env vars.
outputs:
branch: ${{ steps.extract_branch.outputs.branch }}
steps:
Expand All @@ -31,8 +32,9 @@ jobs:
bluehost:
name: Bluehost Build and Test Playwright
needs: setup
timeout-minutes: 120
permissions:
contents: read
contents: read # Required for the reusable workflow to clone this module and the brand plugin (GITHUB_TOKEN).
uses: newfold-labs/workflows/.github/workflows/module-plugin-test-playwright.yml@main
with:
module-repo: ${{ github.repository }}
Expand All @@ -43,8 +45,9 @@ jobs:
bluehost-dev:
name: Bluehost Dev Build and Test Playwright
needs: setup
timeout-minutes: 120
permissions:
contents: read
contents: read # Required for the reusable workflow to clone this module and the brand plugin (GITHUB_TOKEN).
uses: newfold-labs/workflows/.github/workflows/module-plugin-test-playwright.yml@main
with:
module-repo: ${{ github.repository }}
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,17 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true

# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
permissions: {}

jobs:
phpcs:
name: Run PHP Code Sniffer
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: write # Required to checkout the repo and push PHPCBF fixes on main via git-auto-commit-action (github.token).
Comment on lines +26 to +28
steps:

- name: Checkout
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/newfold-prep-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ jobs:
# This job runs the newfold module-prep-release workflow for this module.
prep-release:
name: Prepare Release
timeout-minutes: 60
permissions:
contents: write
pull-requests: write
contents: write # Required for the reusable prep-release workflow to push the release branch and file bumps.
pull-requests: write # Required for gh pr list and opening the release pull request (GITHUB_TOKEN in reusable job).
uses: newfold-labs/workflows/.github/workflows/reusable-module-prep-release.yml@main
with:
module-repo: ${{ github.repository }}
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/satis-webhook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,17 @@ on:
env:
VERSION: ${GITHUB_REF#refs/tags/*}

# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
permissions: {}

jobs:
webhook:
name: Send Webhook
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read # Required to checkout the repository (actions/checkout with GITHUB_TOKEN).
steps:

- name: Checkout
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/unit-tests-and-coverage-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ concurrency:
group: ${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.head_ref) || github.sha }}
cancel-in-progress: true

# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
permissions: {}

jobs:
get-repo-name:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions: {} # No checkout or GitHub API usage; only derives the repo name from github.repository.
outputs:
repository-name: ${{ steps.repo-name.outputs.name }}
steps:
Expand All @@ -32,9 +38,10 @@ jobs:

unit-tests:
needs: get-repo-name
timeout-minutes: 120
permissions:
contents: write
pull-requests: write
contents: write # Required for the reusable codecoverage workflow to push coverage HTML to gh-pages.
pull-requests: write # Required for the reusable workflow to add PR comments (coverage via mshick/add-pr-comment).
uses: newfold-labs/workflows/.github/workflows/reusable-codecoverage.yml@main
with:
php-versions: '["7.4", "8.0", "8.1", "8.2", "8.3"]'
Expand Down