Skip to content

Commit

Permalink
refactor(github): update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
luanxu-mxc committed Dec 4, 2024
1 parent c6eb3d6 commit cd10663
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 43 deletions.
82 changes: 41 additions & 41 deletions .github/workflows/eventindexer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,47 +12,47 @@ on:
- "go.sum"

jobs:
lint-eventindexer:
name: lint-eventindexer
runs-on: [taiko-runner]
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.21.0
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest

# Optional: working directory, useful for monorepos
working-directory: ./packages/eventindexer
args: --config=.golangci.yml --timeout=4m

test-eventindexer:
runs-on: [taiko-runner]
needs: lint-eventindexer
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: eventindexer - Unit Tests
working-directory: ./packages/eventindexer
run: go test `go list ./... | grep -v ./contracts | grep -v ./mock | grep -v ./cmd` -coverprofile=coverage.txt -covermode=atomic

- name: eventindexer - Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: ./packages/eventindexer/coverage.txt
flags: eventindexer
# lint-eventindexer:
# name: lint-eventindexer
# runs-on: [taiko-runner]
# steps:
# - uses: actions/setup-go@v5
# with:
# go-version: 1.21.0
# - uses: actions/checkout@v4
# - name: golangci-lint
# uses: golangci/golangci-lint-action@v6
# with:
# # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
# version: latest
#
# # Optional: working directory, useful for monorepos
# working-directory: ./packages/eventindexer
# args: --config=.golangci.yml --timeout=4m
#
# test-eventindexer:
# runs-on: [taiko-runner]
# needs: lint-eventindexer
# 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: eventindexer - Unit Tests
# working-directory: ./packages/eventindexer
# run: go test `go list ./... | grep -v ./contracts | grep -v ./mock | grep -v ./cmd` -coverprofile=coverage.txt -covermode=atomic
#
# - name: eventindexer - Upload coverage to Codecov
# uses: codecov/codecov-action@v4
# with:
# files: ./packages/eventindexer/coverage.txt
# flags: eventindexer

push-eventindexer-docker-image:
if: ${{ github.event_name == 'pull_request' }}
Expand Down
4 changes: 2 additions & 2 deletions packages/eventindexer/.l1.env
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ DATABASE_HOST=localhost:3306
DATABASE_MAX_IDLE_CONNS=50
DATABASE_MAX_OPEN_CONNS=3000
DATABASE_CONN_MAX_LIFETIME_IN_MS=100000
L1_TAIKO_ADDRESS=0x62Acda3Ad15B382C32B2fB21BEAc9DfB95bbb02F
L1_TAIKO_ADDRESS=0x6a5c9E342d5FB5f5EF8a799f0cAAB2678C939b0B
BRIDGE_ADDRESS=0xa9242c7A736910357384c8Fe92870B74f8cBE784
ASSIGNMENT_HOOK_ADDRESS=0xb190786090Fc4308c4C40808f3bEB55c4463c152
RPC_URL=wss://l1ws.katla.taiko.xyz
Expand All @@ -16,4 +16,4 @@ BLOCK_BATCH_SIZE=100
CACHE_INTERVAL_IN_SECONDS=60
LAYER=l1
GENESIS_DATE=2023-12-27
REGENERATE=true
REGENERATE=true

0 comments on commit cd10663

Please sign in to comment.