Skip to content

Upgrade/replace GitHub actions#10384

Open
stephanos wants to merge 31 commits into
mainfrom
stephanos/node-20-depre
Open

Upgrade/replace GitHub actions#10384
stephanos wants to merge 31 commits into
mainfrom
stephanos/node-20-depre

Conversation

@stephanos
Copy link
Copy Markdown
Contributor

@stephanos stephanos commented May 25, 2026

What changed?

  1. upgraded nick-fields/retry
  2. upgraded actions/github-script
  3. replaced hoverkraft-tech/compose-action (had no new releases in years)
  4. replaced ScribeMD/docker-cache (had no new releases in years)

Successful run: https://github.com/temporalio/temporal/actions/runs/26410744692/job/77744901445?pr=10384#step:3:1

Why?

There was a flood of warnings.

Screenshot 2026-05-25 at 9 06 06 AM

@stephanos stephanos changed the title Update GitHub Actions for Node 24 Upgrade/simplify GitHub actions May 25, 2026
COMPOSE_FILE: ${{ inputs['compose-file'] }}
FLAGS: ${{ inputs.flags }}
run: |
docker compose -f "$COMPOSE_FILE" down $FLAGS
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Could arguably be inlined, but I like the parity of the start/stop actions.

Comment on lines -491 to -493
- uses: ScribeMD/docker-cache@0.3.7
with:
key: docker-${{ runner.os }}${{ runner.arch }}-${{ hashFiles(env.DOCKER_COMPOSE_FILE) }}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

part of docker-compose-start now

@temporalio temporalio deleted a comment from semgrep-managed-scans Bot May 25, 2026
@stephanos stephanos marked this pull request as ready for review May 25, 2026 17:20
@stephanos stephanos requested review from a team as code owners May 25, 2026 17:20
@stephanos stephanos requested a review from spkane31 May 25, 2026 17:20
@temporalio temporalio deleted a comment from semgrep-managed-scans Bot May 25, 2026
@stephanos stephanos changed the title Upgrade/simplify GitHub actions Upgrade/replace GitHub actions May 26, 2026
description: Stop Docker Compose services.

inputs:
compose-file:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's aim for consistency and make this compose_file and have snake case wherever we can control it.

- name: Stop services
shell: bash
env:
COMPOSE_FILE: ${{ inputs['compose-file'] }}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

After changing the above this can be ${{ inputs.compose_file }}

if: ${{ inputs.cache == 'true' && steps.restore-cache.outputs.cache-hit == 'true' }}
shell: bash
env:
CACHE_PATH: ${{ inputs['cache-path'] }}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Also would prefer we are consistent with inputs.cache_path rather than inputs['cache-path']

description: Wait for Docker Compose services to become healthy.

inputs:
compose-file:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
compose-file:
compose_file:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same changes in the other files as well, preferring snake case to kebab case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants