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

feat: bump actions-checkout to v4 and fix config test error #246

Merged
merged 2 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/actions/image-tag-and-push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,29 @@ runs:
docker buildx imagetools create --tag ${{ inputs.image_name }}:${{ inputs.develop_tag }} ${{ inputs.image_name }}:${{ inputs.last_commit_tag }}
docker buildx imagetools create --tag ${{ inputs.image_name }}:${{ inputs.commit_tag }} ${{ inputs.image_name }}:${{ inputs.last_commit_tag }}
echo IMAGE_TAGGED=true >> $GITHUB_ENV
- name: Split docker image name (i.e. extract "xyz" from "consensys/xyz")
if: ${{ github.ref == 'refs/heads/main' && inputs.last_commit_tag_exists == '0' }}
env:
IMAGE_NAME: ${{ inputs.image_name }}
id: split
shell: bash
run: |
echo "::set-output name=image_name_suffix::${IMAGE_NAME##*/}"
- name: Save Docker image as artifact for later use in e2e test
if: ${{ github.ref == 'refs/heads/main' && inputs.last_commit_tag_exists == '0' }}
shell: bash
run: |
docker pull ${{ env.IMAGE_NAME }}:${{ env.COMMIT_TAG }}
docker save ${{ env.IMAGE_NAME }}:${{ env.COMMIT_TAG }} | gzip > ${{ steps.split.outputs.image_name_suffix }}-docker-image.tar.gz
- name: Upload Docker image artifact for later use in e2e test
if: ${{ github.ref == 'refs/heads/main' && inputs.last_commit_tag_exists == '0' }}
uses: actions/upload-artifact@v4
with:
name: ${{ steps.split.outputs.image_name_suffix }}
path: ${{ steps.split.outputs.image_name_suffix }}-docker-image.tar.gz
- name: Set output from environment variable
shell: bash
id: set-output
run: |
echo "image_tagged=$IMAGE_TAGGED" >> $GITHUB_OUTPUT
echo "image_name_suffix: ${{ steps.split.outputs.image_name_suffix }}"
4 changes: 2 additions & 2 deletions .github/workflows/all-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
all-tools: ${{ steps.filter.outputs['all-tools'] }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Filter commit changes
uses: dorny/paths-filter@v2
id: filter
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
name: All tools build and push
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SELF_GITHUB_SSH_KEY }}
submodules: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bridge-ui-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: [self-hosted, ubuntu-20.04, X64, small]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get version from package.json
id: package-version
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cache-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
cache-images: ${{ steps.filter.outputs.cache-images }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Filter commit changes
uses: dorny/paths-filter@v2
id: filter
Expand All @@ -34,7 +34,7 @@ jobs:
runs-on: [self-hosted, ubuntu-20.04, X64, small]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/load-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ jobs:
name: Run Load Test
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
no-changes: ${{ steps.filter.outputs.coordinator == 'false' && steps.filter.outputs.postman == 'false' && steps.filter.outputs.prover == 'false' && steps.filter.outputs.traces-api-facade == 'false' && steps.filter.outputs.transaction-exclusion-api == 'false' }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Filter commit changes
uses: dorny/paths-filter@v3
id: filter
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/postman-build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
run: |
echo "TAGS=${{ env.IMAGE_NAME }}:${{ env.COMMIT_TAG }},${{ env.IMAGE_NAME }}:${{ env.DEVELOP_TAG }}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SELF_GITHUB_SSH_KEY }}
submodules: true
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/postman-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ jobs:
name: Postman & SDK tests
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
uses: actions/checkout@v4

- name: Setup nodejs environment
uses: ./.github/actions/setup-nodejs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prover-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
go-version: 1.23.x
- name: checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/cache@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reuse-run-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
if: ${{ inputs.e2e-tests-with-ssh }}
uses: lhotari/action-upterm@v1
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup nodejs environment
uses: ./.github/actions/setup-nodejs
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reuse-store-image-name-and-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
develop_tag: ${{ steps.step1.outputs.DEVELOP_TAG }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Compute version tags
id: step1
run: |
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/traces-api-facade-build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@ jobs:
run: |
echo "TAGS=${{ env.IMAGE_NAME }}:${{ env.COMMIT_TAG }},${{ env.IMAGE_NAME }}:${{ env.DEVELOP_TAG }}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/traces-api-facade-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ jobs:
name: Traces api facade tests
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@ jobs:
run: |
echo "TAGS=${{ env.IMAGE_NAME }}:${{ env.COMMIT_TAG }},${{ env.IMAGE_NAME }}:${{ env.DEVELOP_TAG }}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/transaction-exclusion-api-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ jobs:
name: Transaction exclusion api tests
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
Expand Down
Loading