Skip to content

Commit

Permalink
Bump GitHub Actions (temporalio#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjameswh authored Jun 7, 2024
1 parent 1581c64 commit 0b55439
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 48 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
steps:
- name: Print build information
run: 'echo head_ref: "$GITHUB_HEAD_REF", ref: "$GITHUB_REF", os: ${{ matrix.os }}'
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.20'

Expand All @@ -48,8 +48,8 @@ jobs:
steps:
- name: Print build information
run: 'echo head_ref: "$GITHUB_HEAD_REF", ref: "$GITHUB_REF", os: ${{ matrix.os }}'
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4

- run: npm ci
- run: npm run build
Expand All @@ -64,8 +64,8 @@ jobs:
steps:
- name: Print build information
run: 'echo head_ref: "$GITHUB_HEAD_REF", ref: "$GITHUB_REF", os: ${{ matrix.os }}'
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- run: python -m pip install --upgrade wheel poetry poethepoet
Expand All @@ -81,10 +81,10 @@ jobs:
steps:
- name: Print build information
run: 'echo head_ref: "$GITHUB_HEAD_REF", ref: "$GITHUB_REF", os: ${{ matrix.os }}'
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v2
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
Expand All @@ -100,8 +100,8 @@ jobs:
steps:
- name: Print build information
run: 'echo head_ref: "$GITHUB_HEAD_REF", ref: "$GITHUB_REF", os: ${{ matrix.os }}'
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v3
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
- run: dotnet build
- run: dotnet test

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:
run: exit 1
- name: Print build information
run: 'echo head_ref: "$GITHUB_HEAD_REF", ref: "$GITHUB_REF"'
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.20'
- name: Lint dockerfile
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/dotnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Download docker artifacts
if: ${{ inputs.docker-image-artifact-name }}
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ inputs.docker-image-artifact-name }}
path: /tmp/server-docker
Expand All @@ -58,36 +58,37 @@ jobs:
working-directory: '.'

- name: Checkout SDK features repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: features
repository: ${{ inputs.features-repo-path }}
ref: ${{ inputs.features-repo-ref }}
- name: Checkout .NET SDK repo
if: ${{ inputs.version-is-repo-ref }}
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: ${{ inputs.dotnet-repo-path }}
submodules: recursive
path: sdk-dotnet
ref: ${{ inputs.version }}

- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4

- name: Install protoc
if: ${{ inputs.version-is-repo-ref }}
uses: arduino/setup-protoc@v1
uses: arduino/setup-protoc@v3
with:
version: '3.x'
# TODO: Upgrade proto once https://github.com/arduino/setup-protoc/issues/99 is fixed
version: '23.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: '^1.20'

- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
if: ${{ inputs.version-is-repo-ref }}
with:
working-directory: sdk-dotnet/src/Temporalio/Bridge
workspaces: sdk-dotnet/src/Temporalio/Bridge

# Build .NET SDK if using repo
# Don't build during install phase since we're going to explicitly build
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Download docker artifacts
if: ${{ inputs.docker-image-artifact-name }}
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ inputs.docker-image-artifact-name }}
path: /tmp/server-docker
Expand All @@ -58,22 +58,22 @@ jobs:
working-directory: '.'

- name: Checkout SDK features repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: features
repository: ${{ inputs.features-repo-path }}
ref: ${{ inputs.features-repo-ref }}

- name: Checkout Go SDK repo
if: ${{ inputs.version-is-repo-ref }}
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: ${{ inputs.go-repo-path }}
submodules: recursive
path: sdk-go
ref: ${{ inputs.version }}

- uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: '^1.20'

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

- name: Download docker artifacts
if: ${{ inputs.docker-image-artifact-name }}
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ inputs.docker-image-artifact-name }}
path: /tmp/server-docker
Expand All @@ -59,14 +59,14 @@ jobs:
working-directory: '.'

- name: Checkout SDK features repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: features
repository: ${{ inputs.features-repo-path }}
ref: ${{ inputs.features-repo-ref }}
fetch-depth: 0
- name: Checkout Java SDK repo
uses: actions/checkout@v3
uses: actions/checkout@v4
if: ${{ inputs.version-is-repo-ref }}
with:
repository: ${{ inputs.java-repo-path }}
Expand All @@ -75,11 +75,11 @@ jobs:
ref: ${{ inputs.version }}
fetch-depth: 0

- uses: actions/setup-java@v2
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: '^1.20'

Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Download docker artifacts
if: ${{ inputs.docker-image-artifact-name }}
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ inputs.docker-image-artifact-name }}
path: /tmp/server-docker
Expand All @@ -58,39 +58,40 @@ jobs:
working-directory: '.'

- name: Checkout SDK features repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: features
repository: ${{ inputs.features-repo-path }}
ref: ${{ inputs.features-repo-ref }}
- name: Checkout Python SDK repo
if: ${{ inputs.version-is-repo-ref }}
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: ${{ inputs.python-repo-path }}
submodules: recursive
path: sdk-python
ref: ${{ inputs.version }}

- uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: '^1.20'
- uses: actions/setup-python@v1
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- run: python -m pip install --upgrade wheel poetry poethepoet

# Build SDK ==================================================
- name: Install Protoc
if: ${{ inputs.version-is-repo-ref }}
uses: arduino/setup-protoc@v1
uses: arduino/setup-protoc@v3
with:
version: '3.x'
# TODO: Upgrade proto once https://github.com/arduino/setup-protoc/issues/99 is fixed
version: '23.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
if: ${{ inputs.version-is-repo-ref }}
with:
working-directory: sdk-python/temporalio/bridge
workspaces: sdk-python/temporalio/bridge
- run: poetry install --no-root
if: ${{ inputs.version-is-repo-ref }}
working-directory: sdk-python
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/typescript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Download docker artifacts
if: ${{ inputs.docker-image-artifact-name }}
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ inputs.docker-image-artifact-name }}
path: /tmp/server-docker
Expand All @@ -58,38 +58,39 @@ jobs:
working-directory: '.'

- name: Checkout SDK features repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: features
repository: ${{ inputs.features-repo-path }}
ref: ${{ inputs.features-repo-ref }}
- name: Checkout typescript SDK repo
if: ${{ inputs.version-is-repo-ref }}
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: ${{ inputs.typescript-repo-path }}
submodules: recursive
path: sdk-ts
ref: ${{ inputs.version }}

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: 16

- name: Install protoc
if: ${{ inputs.version-is-repo-ref }}
uses: arduino/setup-protoc@v1
uses: arduino/setup-protoc@v3
with:
version: '3.x'
# TODO: Upgrade proto once https://github.com/arduino/setup-protoc/issues/99 is fixed
version: '23.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: '^1.20'

- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
if: ${{ inputs.version-is-repo-ref }}
with:
working-directory: sdk-ts/packages/core-bridge
workspaces: sdk-ts/packages/core-bridge

# Build TS SDK if using repo
# Don't build during install phase since we're going to explicitly build
Expand Down

0 comments on commit 0b55439

Please sign in to comment.