Skip to content

Commit

Permalink
merge main into r1.0 (#8)
Browse files Browse the repository at this point in the history
* rename slime README_zh_CN.md to README.zh_CN.md (#4)

* docs: update readme (#5)

* filter: add github actions (#6)

* validation: fix err type conversion (#7)

* validation: fix err type conversion

* add changelog

---------

Co-authored-by: Bo Yan <[email protected]>
  • Loading branch information
WineChord and tocrafty authored Oct 20, 2023
1 parent 0af1b8e commit f12aff5
Show file tree
Hide file tree
Showing 25 changed files with 427 additions and 11 deletions.
14 changes: 14 additions & 0 deletions .github/typosconfig.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[default]
extend-ignore-identifiers-re = [
"AttributeID.*Supress.*",
]

[default.extend-identifiers]
AttributeIDSupressMenu = "AttributeIDSupressMenu"

[default.extend-words]
WRONLY = "WRONLY"
guage = "guage"

[files]
extend-exclude = ["install/submodules/*"]
32 changes: 32 additions & 0 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "CLA Assistant"
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened, synchronize, reopened]

# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings
permissions:
actions: write
contents: write
pull-requests: write
statuses: write

jobs:
CLAAssistant:
runs-on: ubuntu-latest
steps:
- name: "CLA Assistant"
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
uses: contributor-assistant/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_DATABASE_ACCESS_TOKEN }}
with:
remote-organization-name: trpc-group
remote-repository-name: cla-database
path-to-signatures: 'signatures/${{ github.event.repository.name }}-${{ github.repository_id }}/cla.json'
path-to-document: 'https://github.com/trpc-group/cla-database/blob/main/Tencent-Contributor-License-Agreement.md'
# branch should not be protected
branch: 'main'
allowlist: bot*
25 changes: 25 additions & 0 deletions .github/workflows/debuglog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: debuglog Pull Request Check
on:
pull_request:
paths:
- 'debuglog/**'
push:
paths:
- 'debuglog/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build
run: cd debuglog && go build -v ./...
- name: Test
run: cd debuglog && go test -v -gcflags=all=-l ./...

25 changes: 25 additions & 0 deletions .github/workflows/degrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: degrade Pull Request Check
on:
pull_request:
paths:
- 'degrade/**'
push:
paths:
- 'degrade/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build
run: cd degrade && go build -v ./...
- name: Test
run: cd degrade && go test -v -gcflags=all=-l ./...

25 changes: 25 additions & 0 deletions .github/workflows/filterextensions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: filterextensions Pull Request Check
on:
pull_request:
paths:
- 'filterextensions/**'
push:
paths:
- 'filterextensions/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build
run: cd filterextensions && go build -v ./...
- name: Test
run: cd filterextensions && go test -v -gcflags=all=-l ./...

25 changes: 25 additions & 0 deletions .github/workflows/hystrix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: hystrix Pull Request Check
on:
pull_request:
paths:
- 'hystrix/**'
push:
paths:
- 'hystrix/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build
run: cd hystrix && go build -v ./...
- name: Test
run: cd hystrix && go test -v -gcflags=all=-l ./...

25 changes: 25 additions & 0 deletions .github/workflows/jwt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: jwt Pull Request Check
on:
pull_request:
paths:
- 'jwt/**'
push:
paths:
- 'jwt/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build
run: cd jwt && go build -v ./...
- name: Test
run: cd jwt && go test -v -gcflags=all=-l ./...

25 changes: 25 additions & 0 deletions .github/workflows/masking.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: masking Pull Request Check
on:
pull_request:
paths:
- 'masking/**'
push:
paths:
- 'masking/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build
run: cd masking && go build -v ./...
- name: Test
run: cd masking && go test -v -gcflags=all=-l ./...

25 changes: 25 additions & 0 deletions .github/workflows/mock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: mock Pull Request Check
on:
pull_request:
paths:
- 'mock/**'
push:
paths:
- 'mock/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build
run: cd mock && go build -v ./...
- name: Test
run: cd mock && go test -v -gcflags=all=-l ./...

25 changes: 25 additions & 0 deletions .github/workflows/recovery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: recovery Pull Request Check
on:
pull_request:
paths:
- 'recovery/**'
push:
paths:
- 'recovery/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build
run: cd recovery && go build -v ./...
- name: Test
run: cd recovery && go test -v -gcflags=all=-l ./...

25 changes: 25 additions & 0 deletions .github/workflows/referer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: referer Pull Request Check
on:
pull_request:
paths:
- 'referer/**'
push:
paths:
- 'referer/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build
run: cd referer && go build -v ./...
- name: Test
run: cd referer && go test -v -gcflags=all=-l ./...

25 changes: 25 additions & 0 deletions .github/workflows/slime.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: slime Pull Request Check
on:
pull_request:
paths:
- 'slime/**'
push:
paths:
- 'slime/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build
run: cd slime && go build -v ./...
- name: Test
run: cd slime && go test -v -gcflags=all=-l ./...

25 changes: 25 additions & 0 deletions .github/workflows/transinfo-blocker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: transinfo-blocker Pull Request Check
on:
pull_request:
paths:
- 'transinfo-blocker/**'
push:
paths:
- 'transinfo-blocker/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build
run: cd transinfo-blocker && go build -v ./...
- name: Test
run: cd transinfo-blocker && go test -v -gcflags=all=-l ./...

25 changes: 25 additions & 0 deletions .github/workflows/tvar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: tvar Pull Request Check
on:
pull_request:
paths:
- 'tvar/**'
push:
paths:
- 'tvar/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build
run: cd tvar && go build -v ./...
- name: Test
run: cd tvar && go test -v -gcflags=all=-l ./...

25 changes: 25 additions & 0 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: validation Pull Request Check
on:
pull_request:
paths:
- 'validation/**'
push:
paths:
- 'validation/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build
run: cd validation && go build -v ./...
- name: Test
run: cd validation && go test -v -gcflags=all=-l ./...

Loading

0 comments on commit f12aff5

Please sign in to comment.