-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into dependabot/go_modules/develop/github.com/…
…spf13/viper-1.19.0
- Loading branch information
Showing
45 changed files
with
4,332 additions
and
425 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: deb_packager | ||
# test | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- '**' | ||
tags: | ||
- 'v*.*.*' | ||
- 'v*.*.*-*' | ||
|
||
jobs: | ||
build: | ||
permissions: | ||
id-token: write | ||
contents: write | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@master | ||
with: | ||
go-version: 1.22.x | ||
# Variables | ||
- name: Adding TAG to ENV | ||
run: echo "GIT_TAG=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_ENV | ||
- name: adding version | ||
run: | | ||
NUMERIC_VERSION=$( echo ${{ env.GIT_TAG }} | sed 's/[^0-9.]//g' ) | ||
echo "VERSION=$NUMERIC_VERSION" >> $GITHUB_ENV | ||
- name: build the binary | ||
run: make build | ||
|
||
- name: making directory structure | ||
run: mkdir -p packaging/deb/zkevm-bridge/usr/bin/ | ||
- name: copying necessary binary for amd64 | ||
run: cp -rp dist/zkevm-bridge packaging/deb/zkevm-bridge/usr/bin/zkevm-bridge | ||
- name: create directory for service file | ||
run: mkdir -p packaging/deb/zkevm-bridge/lib/systemd/system | ||
- name: copy the service file | ||
run: cp -rp packaging/systemd/zkevm-bridge.service packaging/deb/zkevm-bridge/lib/systemd/system/ | ||
|
||
|
||
# Control file creation | ||
- name: create control file | ||
run: | | ||
echo "Package: zkevm-bridge" >> packaging/deb/zkevm-bridge/DEBIAN/control | ||
echo "Version: ${{ env.VERSION }}" >> packaging/deb/zkevm-bridge/DEBIAN/control | ||
echo "Section: base" >> packaging/deb/zkevm-bridge/DEBIAN/control | ||
echo "Priority: optional" >> packaging/deb/zkevm-bridge/DEBIAN/control | ||
echo "Architecture: amd64" >> packaging/deb/zkevm-bridge/DEBIAN/control | ||
echo "Maintainer: devops@polygon.technology" >> packaging/deb/zkevm-bridge/DEBIAN/control | ||
echo "Description: zkevm-bridge binary package" >> packaging/deb/zkevm-bridge/DEBIAN/control | ||
- name: Creating package for binary for zkevm-bridge ${{ env.ARCH }} | ||
run: cp -rp packaging/deb/zkevm-bridge packaging/deb/zkevm-bridge-${{ env.GIT_TAG }}-${{ env.ARCH }} | ||
env: | ||
ARCH: amd64 | ||
|
||
- name: Running package build | ||
run: dpkg-deb --build --root-owner-group packaging/deb/zkevm-bridge-${{ env.GIT_TAG }}-${{ env.ARCH }} | ||
env: | ||
ARCH: amd64 | ||
|
||
- name: create checksum for the amd64 package | ||
run: cd packaging/deb/ && sha256sum zkevm-bridge-${{ env.GIT_TAG }}-${{ env.ARCH }}.deb > zkevm-bridge-${{ env.GIT_TAG }}-${{ env.ARCH }}.deb.checksum | ||
env: | ||
ARCH: amd64 | ||
|
||
|
||
- name: Release zkevm-bridge Packages | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ env.GIT_TAG }} | ||
prerelease: true | ||
files: | | ||
packaging/deb/zkevm-bridge**.deb | ||
packaging/deb/zkevm-bridge**.deb.checksum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Regression Tests | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] # Trigger on new PR and existing with new commits | ||
branches: | ||
- develop | ||
|
||
|
||
jobs: | ||
regression_tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build image (with proposed code changes) locally | ||
id: build | ||
run: | | ||
if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then | ||
GITHUB_SHA_SHORT=$(jq -r .pull_request.head.sha "$GITHUB_EVENT_PATH" | cut -c 1-7) | ||
echo $GITHUB_SHA_SHORT | ||
echo "::set-output name=GITHUB_SHA_SHORT::$GITHUB_SHA_SHORT" | ||
fi | ||
- name: Run Regression Tests | ||
uses: 0xPolygon/kurtosis-cdk@v0.1.9 | ||
with: | ||
zkevm_bridge_service: ${{ steps.build.outputs.GITHUB_SHA_SHORT }} | ||
zkevm_agglayer: '0.1.4' | ||
zkevm_bridge_ui: '0006445' | ||
zkevm_dac: '0.0.7' | ||
zkevm_node: '0.6.5-cdk' | ||
kurtosis_cdk: 'v0.2.3' | ||
kurtosis_cli: '0.89.3' | ||
bake_time: 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Test | ||
name: Test-e2e | ||
on: | ||
push: | ||
branches: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Test | ||
name: Test-e2compress | ||
on: | ||
push: | ||
branches: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Test | ||
name: Test-edge | ||
on: | ||
push: | ||
branches: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# CONTAINER FOR BUILDING BINARY | ||
FROM golang:1.21 AS build | ||
|
||
ENV CGO_ENABLED=0 | ||
|
||
# BUILD BINARY | ||
COPY . /src | ||
RUN cd /src && make build-test-e2e-real_network | ||
|
||
# CONTAINER FOR RUNNING BINARY | ||
FROM alpine:3.16.0 AS ERC20 | ||
COPY --from=build /src/dist/zkevm-bridge-e2e-real_network-erc20 /app/zkevm-bridge-e2e-real_network-erc20 | ||
CMD ["/bin/sh", "-c", "/app/zkevm-bridge-e2e-real_network-erc20 -test.failfast -test.v"] | ||
|
||
# CONTAINER FOR RUNNING BINARY | ||
FROM alpine:3.16.0 AS MSG | ||
COPY --from=build /src/dist/zkevm-bridge-e2e-real_network-bridgemsg /app/zkevm-bridge-e2e-real_network-bridgemsg | ||
CMD ["/bin/sh", "-c", "/app/zkevm-bridge-e2e-real_network-bridgemsg -test.failfast -test.v"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.