Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ui): Upgrade UI dependencies #79

Merged
merged 13 commits into from
Jul 17, 2024
Merged
12 changes: 2 additions & 10 deletions .github/actions/setup-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,10 @@ runs:
using: "composite"
steps:
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ inputs.go-version }}

- name: Cache Dependencies
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
cache-dependency-path: "**/go.sum"
leonlnj marked this conversation as resolved.
Show resolved Hide resolved

# Since Github actions' services don't expose command like how docker-compose does, we'll need to
# start Google Pubsub Emulator separately since it requires running the command
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ jobs:
steps:
- name: Set up Go
id: setup-go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Lint Plugins module
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
with:
version: ${{ env.GO_LINT_VERSION }}
working-directory: plugins/turing
Expand All @@ -54,12 +54,12 @@ jobs:

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

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

Expand All @@ -71,7 +71,7 @@ jobs:
outputs:
release-type: ${{ steps.release-rules.outputs.release-type }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- id: release-rules
uses: ./.github/actions/release-rules
with:
Expand All @@ -97,12 +97,12 @@ jobs:
- release-rules
- turing-plugin-tests
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Log in to the Container registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down
45 changes: 17 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,13 @@ jobs:
working-directory: ui
steps:
- name: Checkout to the target branch
uses: actions/checkout@v3
uses: actions/checkout@v4

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

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache YARN
uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version: "20.x"
cache: yarn
cache-dependency-path: ui/yarn.lock

- name: Install
run: yarn install --network-concurrency 1
Expand All @@ -56,7 +45,7 @@ jobs:
run: yarn build

- name: Publish Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: xp-ui-dist
path: ui/build/
Expand All @@ -72,18 +61,18 @@ jobs:
api-version: ${{ steps.build-image.outputs.api-version }}
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Download UI Dist
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: xp-ui-dist
path: ui/build

- name: Download Management Service binary
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: management-service-binary
path: management-service/bin/
Expand All @@ -102,7 +91,7 @@ jobs:
xp-management:${{ steps.build-image.outputs.api-version }}

- name: Publish Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: xp-management.${{ steps.build-image.outputs.api-version }}.tar
path: xp-management.${{ steps.build-image.outputs.api-version }}.tar
Expand All @@ -116,12 +105,12 @@ jobs:
api-version: ${{ steps.build-image.outputs.api-version }}
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Download Treatment Service binary
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: treatment-service-binary
path: treatment-service/bin/
Expand All @@ -141,7 +130,7 @@ jobs:
xp-treatment:${{ steps.build-image.outputs.api-version }}

- name: Publish Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: xp-treatment.${{ steps.build-image.outputs.api-version }}.tar
path: xp-treatment.${{ steps.build-image.outputs.api-version }}.tar
Expand All @@ -154,14 +143,14 @@ jobs:
- build-management-service
steps:
- name: Log in to the Container registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ${{ inputs.container_registry }}
username: ${{ github.actor }}
password: ${{ secrets.ghcr_token }}

- name: Download Docker image tar
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: xp-management.${{ needs.build-management-service.outputs.api-version }}.tar

Expand All @@ -182,14 +171,14 @@ jobs:
- build-treatment-service
steps:
- name: Log in to the Container registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ${{ inputs.container_registry }}
username: ${{ github.actor }}
password: ${{ secrets.ghcr_token }}

- name: Download Docker image tar
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: xp-treatment.${{ needs.build-treatment-service.outputs.api-version }}.tar

Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/xp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:
env:
PYTHON: 3.7
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Python
id: setup-python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.10"
architecture: x64
Expand All @@ -51,10 +51,10 @@ jobs:
steps:
- name: Set up Go
id: setup-go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Lint Common module
uses: golangci/golangci-lint-action@v3
with:
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
- 5432:5432
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
- 5432:5432
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
- 5432:5432
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -183,7 +183,7 @@ jobs:

- name: Setup Python
id: setup-python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.10"
architecture: x64
Expand All @@ -195,14 +195,14 @@ jobs:
run: make build

- name: Publish Management Service Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: management-service-binary
path: management-service/bin/
retention-days: ${{ env.ARTIFACT_RETENTION_DAYS }}

- name: Publish Treatment Service Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: treatment-service-binary
path: treatment-service/bin/
Expand All @@ -221,7 +221,7 @@ jobs:
outputs:
release-type: ${{ steps.release-rules.outputs.release-type }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: release-rules
uses: ./.github/actions/release-rules

Expand Down
2 changes: 1 addition & 1 deletion plugins/turing/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ require (
github.com/cenkalti/backoff/v4 v4.1.2 // indirect
github.com/certifi/gocertifi v0.0.0-20191021191039-0944d244cd40 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/confluentinc/confluent-kafka-go v1.8.2 // indirect
github.com/confluentinc/confluent-kafka-go v1.9.2 // indirect
github.com/containerd/cgroups v1.0.3 // indirect
github.com/containerd/containerd v1.6.6 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
Expand Down
Loading
Loading