Skip to content

Commit

Permalink
fix things up
Browse files Browse the repository at this point in the history
  • Loading branch information
dionysuzx committed May 8, 2024
1 parent 91ce070 commit c2e1557
Show file tree
Hide file tree
Showing 130 changed files with 1,604 additions and 2,516 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ on:
push:
branches: [main]
tags:
- "v*"
- "taiko-client-v*"
paths:
- "packages/taiko-client/**"

jobs:
push-docker-image:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- main
paths:
- "packages/taiko-client/**"

permissions:
contents: read
Expand Down Expand Up @@ -33,6 +35,7 @@ jobs:
run: go install github.com/swaggo/swag/cmd/swag@latest

- name: swag init
working-directory: packages/taiko-client
run: ./scripts/gen_swagger_json.sh

deploy:
Expand All @@ -54,7 +57,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: '.'
path: "packages/taiko-client"

- name: Deploy to GitHub Pages
id: deployment
Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/taiko-client-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: "CI"

on:
push:
branches: [main]
paths:
- "packages/taiko-client/**"
pull_request:
paths:
- "packages/taiko-client/**"

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

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

- name: Lint
working-directory: packages/taiko-client
run: make lint

integration_tests:
name: Integration tests
runs-on: ubuntu-latest

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

- uses: actions/checkout@v4

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

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

- name: Install pnpm dependencies
uses: ./.github/actions/install-pnpm-dependencies

- name: Test
working-directory: packages/taiko-client
run: make test

- name: Codecov.io
uses: codecov/codecov-action@v3
with:
files: packages/taiko-client/coverage.out
1 change: 1 addition & 0 deletions .github/workflows/validate-pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
protocol
relayer
taikoon
taiko-client
supplementary-contracts
requireScope: true
subjectPattern: ^(?![A-Z])(?!.*\btypo\b).+$ # Require lowercase PR title and prohibit word "typo"
Expand Down
3 changes: 2 additions & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"packages/guardian-prover-health-check": "0.1.0",
"packages/guardian-prover-health-check-ui": "0.1.0",
"packages/protocol": "1.4.0",
"packages/relayer": "0.12.0"
"packages/relayer": "0.12.0",
"packages/taiko-client": "0.22.0"
}
6 changes: 6 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@
# False positives
extend-ignore-identifiers-re = [
"QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG",
"TGE",
"tge",
]

[files]
extend-exclude = [
"*.png",
"*.svg",
"go.mod",
"CHANGELOG.md",
"packages/protocol/audit/code4rena-2024-03-taiko-final-report.md",
"packages/protocol/contracts/automata-attestation/**",
"packages/protocol/contracts/thirdparty/**",
"packages/protocol/contracts/compiled/**",
# TODO: fix typos and remove these
"packages/taiko-client/**",
]
Loading

0 comments on commit c2e1557

Please sign in to comment.