Skip to content

Commit

Permalink
Merge pull request #145 from moderntribe/feature/action-workflows-cle…
Browse files Browse the repository at this point in the history
…anup

Feature/action workflows cleanup
  • Loading branch information
dpellenwood authored Jun 21, 2024
2 parents ebf4990 + 81e38c2 commit c09f6cf
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Workflows'
name: 'Code Quality Checks'

on:
workflow_dispatch:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

# Get Build Repository
- name: Check out build branch
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: ${{ env.BUILD_FOLDER }}
ref: ${{github.ref}}
Expand All @@ -52,7 +52,7 @@ jobs:
# Set up node version
- name: Set up node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: "${{ env.BUILD_FOLDER }}/.nvmrc"
cache: 'npm'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

# Get Build Repository
- name: Check out build branch
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: ${{ env.BUILD_FOLDER }}
ref: ${{github.ref}}
Expand All @@ -54,7 +54,7 @@ jobs:
# Set up node version
- name: Set up node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: "${{ env.BUILD_FOLDER }}/.nvmrc"
cache: 'npm'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

# Get Build Repository
- name: Check out build branch
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: ${{ env.BUILD_FOLDER }}
ref: ${{github.ref}}
Expand All @@ -55,7 +55,7 @@ jobs:
# Set up node version
- name: Set up node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: "${{ env.BUILD_FOLDER }}/.nvmrc"
cache: 'npm'
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/dokku-review-app.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Dokku Deploy Review App
name: 'Dokku Review App'

on:
workflow_dispatch:
Expand Down Expand Up @@ -45,3 +45,11 @@ jobs:
secrets:
github_pat_token: ${{ secrets.GH_BOT_TOKEN }}
server: d1.moderntribe.qa

complete_workflow:
if: ${{ always() }}
needs: [create_review_app, deploy_review_app, destroy_review_app]
runs-on: ubuntu-latest
steps:
- name: Complete Workflow
run: echo "Dokku Deploy Review App workflow complete."
4 changes: 2 additions & 2 deletions .github/workflows/lighthouse-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Audit URLs using Lighthouse
uses: treosh/lighthouse-ci-action@v10
uses: treosh/lighthouse-ci-action@v11
with:
urls: |
https://moose-dev.d1.moderntribe.qa/?secret=1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Detect File Changes
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
id: changed-files
with:
list-files: shell
Expand All @@ -25,7 +25,7 @@ jobs:
- name: Set up node
if: steps.changed-files.outputs.linting == 'true'
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: './.nvmrc'
cache: 'npm'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/php-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:

steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: ${{ env.build_folder }}

- name: Detect File Changes
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
id: changed-files
with:
working-directory: ${{ env.build_folder }}
Expand All @@ -42,7 +42,7 @@ jobs:
- name: Checkout slic
if: steps.changed-files.outputs.tests == 'true'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: stellarwp/slic
ref: main
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Detect File Changes
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
id: changed-files
with:
list-files: shell
Expand All @@ -32,7 +32,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
tools: composer:2
php-version: '8.0'
php-version: '8.1'

- name: Get Composer Cache Directory
id: composer-cache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pipeline-dokku.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cloning repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ inputs.branch }}
Expand All @@ -61,7 +61,7 @@ jobs:
mv .deploy/config/local-config-dokku.php local-config.php
- name: Setup node version
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: './.nvmrc'
cache: 'npm'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Detect File Changes
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
id: changed-files
with:
list-files: shell
Expand All @@ -33,7 +33,7 @@ jobs:
if: steps.changed-files.outputs.phpstan == 'true'
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.1'
extensions: mbstring, intl
coverage: none
tools: composer:2
Expand All @@ -44,7 +44,7 @@ jobs:
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
- uses: actions/cache@v4
if: steps.changed-files.outputs.phpstan == 'true'
with:
path: ${{ steps.composer-cache.outputs.dir }}
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). Each changelog entry gets prefixed with the category of the item (Added, Changed, Depreciated, Removed, Fixed, Security).

## [2024.06]
- Changed: Renamed and added a finish job to the Dokku Deploy App workflow so that it doesn't fail when all 3 app jobs are skipped.
- Changed: Renamed the code quality workflow from "Workflow" to "Code Quality Checks" and renamed the file accordingly.
- Updated: Updated GitHub default & 3rd-party action versions to eliminate (node version warnings)[https://github.com/moderntribe/moose/actions/runs/9617664104].

## [2024.05]
- Updated: Pattern definition consistency for usage of `Inserter:`
- Updated: Post pattern now shows up in the pattern selector when adding a new post.
Expand Down

0 comments on commit c09f6cf

Please sign in to comment.