Skip to content

fix(eventindexer, blobstorage): improved configuration and README documentation #87

fix(eventindexer, blobstorage): improved configuration and README documentation

fix(eventindexer, blobstorage): improved configuration and README documentation #87

Workflow file for this run

name: Blobstorage
on:
push:
branches: [main]
paths:
- "packages/blobstorage/**"
pull_request:
paths:
- "packages/blobstorage/**"
jobs:
test:
runs-on: [taiko-runner]
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.0"
- name: blobstorage - Unit Tests
working-directory: ./packages/blobstorage
run: go test `go list ./... | grep -v ./bindings | grep -v ./mock | grep -v ./cmd` -coverprofile=coverage.txt -covermode=atomic
- name: blobstorage - Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: ./packages/blobstorage/coverage.txt
flags: blobstorage
push-docker-image:
# only push docker image on PR merge to main
if: ${{ github.event }} == 'push'
name: Build and push docker image
runs-on: [taiko-runner]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Login to GCR
uses: docker/login-action@v3
with:
registry: gcr.io
username: _json_key
password: ${{ secrets.GCR_JSON_KEY }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
gcr.io/evmchain/blobstorage
tags: |
type=ref,event=branch
type=ref,event=pr
type=ref,event=tag
type=sha
- name: Build and push
uses: docker/build-push-action@v5
with:
platforms: linux/amd64
push: true
context: .
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
PACKAGE=blobstorage