Skip to content

Commit

Permalink
Merge pull request #593 from UKHomeOffice/update-ci-pipeline
Browse files Browse the repository at this point in the history
CI: Update components in pipeline
  • Loading branch information
daniel-ac-martin authored Jul 16, 2024
2 parents 3409903 + ed0977a commit 2cac0a5
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/actions/deploy-to-heroku/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ runs:
steps:

- name: Login to Heroku
uses: AkhileshNS/heroku-deploy@v3.12.14
uses: AkhileshNS/heroku-deploy@v3.13.15
with:
heroku_api_key: ${{ inputs.heroku-api-key }}
heroku_app_name: ''
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/deploy-to-netlify/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ runs:

- id: deploy
name: Deploy
uses: nwtgck/actions-netlify@v2.0.0
uses: nwtgck/actions-netlify@v3.0.0
with:
publish-dir: "${{ inputs.app && format('apps/{0}/', inputs.app) }}pkg/netlify/publish/"
functions-dir: "${{ inputs.app && format('apps/{0}/', inputs.app) }}pkg/netlify/functions/"
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/scan-app/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ runs:
run: |
PRETTY_TARGET="${TARGET#https://}"
echo "write-issue=$([[ \"${GITHUB_REF#refs/heads/}\" != \"${BASELINE_BRANCH}\" ]] && echo 'false' || echo 'true')" >> ${GITHUB_OUTPUT}
echo "fail-action=$([[ \"${GITHUB_REF#refs/heads/}\" != \"${BASELINE_BRANCH}\" ]] && echo 'true' || true)" >> ${GITHUB_OUTPUT}
echo "fail-action=$([[ \"${GITHUB_REF#refs/heads/}\" != \"${BASELINE_BRANCH}\" ]] && echo 'true' || echo 'false')" >> ${GITHUB_OUTPUT}
echo "prefix=${PRETTY_TARGET:-${APP}}" >> ${GITHUB_OUTPUT}
echo "target=${TARGET:-http://localhost:8080}" >> ${GITHUB_OUTPUT}
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/scan-code/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ runs:
steps:

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: 'javascript'

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
2 changes: 1 addition & 1 deletion .github/actions/scan-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ runs:
steps:

- name: Cache vdb
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/vdb
Expand Down
10 changes: 5 additions & 5 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ runs:
sudo update-locale LANG=${{ env.LANG }}
- name: Setup PNPM
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v3.0.0
with:
version: 7.33.6
run_install: false

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node }}
cache: 'pnpm'

- name: Cache Cypress.io
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-hash: ${{ hashFiles('pnpm-lock.yaml') }}
with:
Expand All @@ -40,7 +40,7 @@ runs:

- name: Pull dependencies
if: ${{ !inputs.frozen-lockfile || inputs.frozen-lockfile == 'false' }}
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v3.0.0
with:
version: 7.33.6
run_install: |
Expand All @@ -49,7 +49,7 @@ runs:
- name: Pull dependencies (frozen lock-file)
if: ${{ inputs.frozen-lockfile && inputs.frozen-lockfile != 'false' }}
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v3.0.0
with:
version: 7.33.6
run_install: true
14 changes: 7 additions & 7 deletions .github/workflows/change-assurance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Scan code-base
uses: ./.github/actions/scan-code
Expand All @@ -30,7 +30,7 @@ jobs:
steps:

- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand All @@ -50,7 +50,7 @@ jobs:
steps:

- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand All @@ -71,7 +71,7 @@ jobs:
steps:

- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand All @@ -84,7 +84,7 @@ jobs:
app: ${{ matrix.app }}

- name: Save build directory
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: 'build-${{ matrix.app }}'
path: "${{ matrix.app && format('apps/{0}/', matrix.app) }}dist"
Expand All @@ -103,15 +103,15 @@ jobs:
steps:

- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
with:
node: 18

- name: Download build directory
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: 'build-${{ matrix.app }}'
path: "${{ matrix.app && format('apps/{0}/', matrix.app) }}dist"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-to-heroku.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
steps:

- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
steps:

- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-to-netlify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
steps:

- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
steps:

- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:

- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -22,7 +22,7 @@ jobs:
node: 18

- name: Push Storybook to Chromatic
uses: chromaui/action@v1
uses: chromaui/action@v11
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:

- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static-security-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Scan code-base
uses: ./.github/actions/scan-code
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-built-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:

- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}

Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
steps:

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Scan code-base
uses: ./.github/actions/scan-code

1 comment on commit 2cac0a5

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://hods.netlify.app as production
🚀 Deployed on https://669695d1588c7dc1f8bd88f7--hods.netlify.app

Please sign in to comment.