Skip to content

Commit

Permalink
update git ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed Aug 11, 2024
1 parent f7eb9f6 commit 3a0e584
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 7 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/taiko-client--docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Push docker image to GAR"

on:
push:
branches: [hive_tests_]
branches: [main]
tags:
- "taiko-client-v*"
paths:
Expand Down Expand Up @@ -51,7 +51,3 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: hive test
working-directory: packages/taiko-client
run: make hive_test
47 changes: 47 additions & 0 deletions .github/workflows/taiko-client--hive_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "hive tests"

on:
push:
branches: [hive_tests_]
paths:
- "packages/taiko-client/**"
pull_request:
paths:
- "packages/taiko-client/**"
- "go.mod"
- "go.sum"

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
cache: true

hive_tests:
name: hive tests
runs-on: ubuntu-latest

steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
cache: true

- name: hive tests
working-directory: packages/taiko-client
run: make hive_tests
4 changes: 2 additions & 2 deletions packages/taiko-client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ test: lint
./integration_test/entrypoint.sh

# HIVE_BASE_DIR(the path of [email protected]:taikoxyz/hive.git) is necessary when run hive_test in local environment.
hive_test:
hive_tests:
@sh ./integration_test/hive_test.sh

dev_net:
Expand All @@ -39,6 +39,6 @@ gen_bindings:
clean \
lint \
test \
hive_test \
hive_tests \
dev_net \
gen_bindings

0 comments on commit 3a0e584

Please sign in to comment.