Skip to content

Commit 25ba11a

Browse files
authored
Merge pull request #6 from D4ryl00/d4ryl00/update-for-extracting
feat: update for extracting
2 parents 97e74f8 + 2705cb6 commit 25ba11a

File tree

414 files changed

+16927
-20978
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

414 files changed

+16927
-20978
lines changed

.github/CODEOWNERS

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,15 @@
1515
# doc
1616
/docs/ @berty/tech
1717

18-
# js files
19-
/js/ @berty/js-owners
20-
2118
# golang files
22-
/go/ @berty/go-owners @moul
23-
/go/internal/ @berty/go-owners
19+
/*.go @berty/go-owners @moul
20+
/internal/ @berty/go-owners
21+
/pkg/ @berty/go-owners
2422

2523
# protos
2624
/api/ @berty/tech
2725
/api/go-internal/ @berty/go-owners
2826

29-
# self hosted runner Github Actions
30-
/tool/ci-self-hosted @aeddi
31-
3227
##
3328
## by filetype
3429
##
@@ -42,5 +37,4 @@ Makefile @berty/build-owners
4237
##
4338

4439
# public APIs
45-
/go/pkg/bertyprotocol/ @berty/go-owners @moul
46-
/api/bertyprotocol.proto @berty/go-owners @berty/js-owners @moul
40+
/api/protocol/bertyprotocol.proto @berty/go-owners @berty/js-owners @moul

.github/dependabot.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,8 @@ version: 2
22
# @NOTE(gfanton): we use 0 as pull-request-limit to only enable security update.
33
# see: https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/configuring-dependabot-security-updates#overriding-the-default-behavior-with-a-configuration-file
44
updates:
5-
- package-ecosystem: "npm"
6-
directory: "/js"
7-
schedule:
8-
interval: "daily"
9-
# Disable version updates for npm dependencies (enable only security update)
10-
open-pull-requests-limit: 0
11-
commit-message:
12-
prefix: "fix"
13-
include: "scope"
14-
labels:
15-
- "security"
16-
- "t/javascript"
17-
- "dependencies"
18-
195
- package-ecosystem: docker
20-
directory: "/"
6+
directory: "/tool/docker-protoc"
217
schedule:
228
interval: daily
239
# Disable version updates for docker dependencies (enable only security update)

.github/workflows/android.yml

Lines changed: 0 additions & 121 deletions
This file was deleted.

.github/workflows/benchmark.yml

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,22 @@ on:
66
branches:
77
- master
88
paths:
9-
- "go/**"
10-
- "!go/**.md"
9+
- "**"
10+
- "!**.md"
1111
- "go.*"
1212
- "**.go"
1313
- ".github/workflows/benchmark.yml"
1414
pull_request:
1515
paths:
16-
- "go/**"
17-
- "!go/**.md"
16+
- "**"
17+
- "!**.md"
1818
- "go.*"
1919
- "**.go"
2020
- ".github/workflows/benchmark.yml"
2121

2222
jobs:
2323
benchmark:
24+
if: github.event_name == 'DISABLED'
2425
name: Run benchmarks
2526
runs-on: ubuntu-latest
2627
steps:
@@ -47,18 +48,12 @@ jobs:
4748
uses: actions/[email protected]
4849
with:
4950
path: ~/go/pkg/mod
50-
key: ${{ runner.os }}-go-${{ env.go_version }}-${{ env.json_cache-versions_go }}-${{ hashFiles('**/go.sum') }}
51+
key: ${{ runner.os }}-go-${{ env.go_version }}-${{ env.json_cache-versions_go }}-${{ hashFiles('go.sum') }}
5152
restore-keys: ${{ runner.os }}-go-${{ env.go_version }}-${{ env.json_cache-versions_go }}-
5253

53-
- name: Compile the project on Unix-like operating systems
54-
working-directory: go
55-
run: |
56-
touch gen.sum # avoid triggering make generate
57-
make go.install
58-
5954
- name: Run benchmark
6055
run: make go.unittest | tee output_head.txt
61-
working-directory: go
56+
working-directory: .
6257
env:
6358
TEST_SPEED: any
6459
GO_TEST_PATH: ./internal/benchmark
@@ -73,20 +68,13 @@ jobs:
7368
if: github.event_name == 'pull_request'
7469
with:
7570
path: ~/go/pkg/mod
76-
key: ${{ runner.os }}-go-${{ env.go_version }}-${{ env.json_cache-versions_go }}-${{ hashFiles('**/go.sum') }}
71+
key: ${{ runner.os }}-go-${{ env.go_version }}-${{ env.json_cache-versions_go }}-${{ hashFiles('go.sum') }}
7772
restore-keys: ${{ runner.os }}-go-${{ env.go_version }}-${{ env.json_cache-versions_go }}-
7873

79-
- name: Compile the project on Unix-like operating systems (master)
80-
working-directory: go
81-
if: github.event_name == 'pull_request'
82-
run: |
83-
touch gen.sum # avoid triggering make generate
84-
make go.install
85-
8674
- name: Run benchmark (master)
8775
run: make go.unittest | tee output_base.txt
8876
if: github.event_name == 'pull_request'
89-
working-directory: go
77+
working-directory: .
9078
env:
9179
TEST_SPEED: any
9280
GO_TEST_PATH: ./internal/benchmark
@@ -100,7 +88,7 @@ jobs:
10088
echo '```' >> $GITHUB_STEP_SUMMARY
10189
benchstat output_head.txt >> $GITHUB_STEP_SUMMARY
10290
echo '```' >> $GITHUB_STEP_SUMMARY
103-
working-directory: go
91+
working-directory: .
10492

10593
- name: Benchstat PR
10694
id: benchstat-pr
@@ -110,11 +98,11 @@ jobs:
11098
echo '```' >> $GITHUB_STEP_SUMMARY
11199
benchstat output_head.txt output_base.txt >> $GITHUB_STEP_SUMMARY
112100
echo '```' >> $GITHUB_STEP_SUMMARY
113-
working-directory: go
101+
working-directory: .
114102

115103
- name: Generate pprof html files
116104
id: pprof-html-files-no-relative
117-
working-directory: go
105+
working-directory: .
118106
run: |
119107
mkdir -p pprof_html/head/{cpu,mem}/{top,flamegraph,peek,source}
120108
@@ -168,7 +156,7 @@ jobs:
168156
- name: Generate pprof html files (PR)
169157
if: github.event_name == 'pull_request'
170158
id: pprof-html-files-pr
171-
working-directory: go
159+
working-directory: .
172160
run: |
173161
mkdir -p pprof_html/base_comp/{cpu,mem}
174162
@@ -197,7 +185,7 @@ jobs:
197185
198186
- name: Generate pprof html files (footer)
199187
id: pprof-html-files-footer
200-
working-directory: go
188+
working-directory: .
201189
run: |
202190
cat << EOF >> pprof_html/index.html
203191
</body>

.github/workflows/cancel.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@ name: Cancel
22
on:
33
workflow_run:
44
workflows: [
5-
"Android",
65
"CodeQL",
76
"Dependent Issues",
87
"Go",
98
"Integration",
10-
"iOS",
11-
"JS",
129
"macOS Release",
1310
"Protobuf",
1411
]

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,19 @@ on:
1515
push:
1616
branches: [ master, v1 ]
1717
paths:
18-
- 'go/**'
18+
- '**'
1919
- '!**.md'
2020
- 'go.*'
2121
- '**.go'
22-
- 'js/**'
23-
- '!js/packages/i18n/locale/*/*.json'
2422
- '.github/workflows/codeql-analysis.yml'
2523
pull_request:
2624
# The branches below must be a subset of the branches above
2725
branches: [ master ]
2826
paths:
29-
- 'go/**'
27+
- '**'
3028
- '!**.md'
3129
- 'go.*'
3230
- '**.go'
33-
- 'js/**'
34-
- '!js/packages/i18n/locale/*/*.json'
3531
- '.github/workflows/codeql-analysis.yml'
3632

3733
schedule:
@@ -45,7 +41,7 @@ jobs:
4541
strategy:
4642
fail-fast: false
4743
matrix:
48-
language: [ 'go', 'javascript' ]
44+
language: [ 'go' ]
4945
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
5046
# Learn more:
5147
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

0 commit comments

Comments
 (0)