Skip to content

Commit

Permalink
Merge branch 'gnolang:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
kazai777 authored May 9, 2024
2 parents f022f94 + abaf103 commit 1c6a4e2
Show file tree
Hide file tree
Showing 429 changed files with 16,488 additions and 16,370 deletions.
34 changes: 24 additions & 10 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,36 @@ misc/
docker-compose.yml
tests/docker-integration/

# gitignore
*.sw[pon]
cmd/foo.go
unsorted.*
# Copied from .gitignore

# Editor Leftovers
.DS_Store
.vscode
.idea

# Default node data
gnoland-data
genesis.json

# Build leftovers
build

# Legacy .gitignore
data/*
proto/*
testdir/
pkgs/sdk/vm/_testdata
build/*
testdir

# Log + generation leftovers
*.tx
*.log.*
*.log
*.gno.gen.go
*.gno.gen_test.go
.vscode
.idea
*.pb.go
pbbindings.go
*~
.#*
*#

# Test coverage leftovers
cover.out
coverage.out
100 changes: 64 additions & 36 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -3,60 +3,87 @@
# Primary repo maintainers.
* @gnolang/tech-staff

# Tendermint2 (Gno version).
/tm2/* @gnolang/tech-staff
/tm2/pkg @jaekwon @piux2 @moul @zivkovicmilos
/tm2/pkg/crypto @jaekwon @moul @gnolang/security
# Tendermint2.
/tm2/ @jaekwon @moul @piux2 @zivkovicmilos
/tm2/pkg/crypto/ @jaekwon @moul @gnolang/security
/tm2/pkg/crypto/keys/client/ @jaekwon @gnolang/security
/tm2/pkg/db/ @ajnavarro
# TODO: add per package exceptions
# ...

# Docs & Content.
/docs/ @gnolang/devrels
/misc/docusaurus/ @gnolang/devrels
/README.md @gnolang/devrels
/docs/ @moul
/docs/**.md @gnolang/devrels
/docs/**.gif @gnolang/devrels
/docs/Makefile @gnolang/devrels
/README.md @moul @gnolang/devrels
/**/README.md @gnolang/devrels
/.gitpod.yml @gnolang/devrels

# Gno examples and default contracts.
/examples/ @gnolang/tech-staff @gnolang/devrels
/examples/gno.land/r/gnoland/ @moul
/examples/gno.land/r/gov/ @moul
/examples/gno.land/r/sys/ @moul
/examples/gno.land/r/worx/ @moul
/examples/gno.land/r/x @gnolang/devrels
# TODO: add people from the community here.
/examples/gno.land/r/jaekwon/ @jaekwon
/examples/gno.land/r/manfred/ @moul
/examples/ @gnolang/tech-staff @gnolang/devrels
/examples/gno.land/p/demo/ @gnolang/tech-staff @gnolang/devrels
/examples/gno.land/p/demo/avl/ @jaekwon
/examples/gno.land/p/demo/bf/ @moul
/examples/gno.land/p/demo/blog/ @gnolang/devrels
/examples/gno.land/p/demo/cford32/ @thehowl
/examples/gno.land/p/demo/memeland/ @leohhhn
/examples/gno.land/p/demo/seqid/ @thehowl
/examples/gno.land/p/demo/ownable/ @leohhhn
/examples/gno.land/p/demo/pausable/ @leohhhn
/examples/gno.land/p/demo/stack/ @harry-hov
/examples/gno.land/p/demo/svg/ @moul
/examples/gno.land/p/demo/tamagotchi/ @moul
/examples/gno.land/p/demo/ui/ @moul
/examples/gno.land/r/demo/ @gnolang/tech-staff @gnolang/devrels
/examples/gno.land/r/demo/art/ @moul
/examples/gno.land/r/demo/memeland/ @leohhhn
/examples/gno.land/r/demo/tamagotchi/ @moul
/examples/gno.land/r/demo/userbook/ @leohhhn
/examples/gno.land/r/gnoland/ @moul
/examples/gno.land/r/sys/ @moul
/examples/gno.land/r/jaekwon/ @jaekwon
/examples/gno.land/r/manfred/ @moul

# Gno.land.
/gno.land/ @moul
/gno.land/pkg/integration @gfanton
/gno.land/ @moul @zivkovicmilos
/gno.land/cmd/genesis/ @zivkovicmilos
/gno.land/cmd/gnokey/ @jaekwon @moul @gfanton
/gno.land/cmd/gnoland/ @zivkovicmilos @gnolang/devops
/gno.land/cmd/gnoweb/ @gfanton @thehowl
/gno.land/pkg/gnoclient/ @zivkovicmilos @leohhhn @gfanton
/gno.land/pkg/gnoland/ @zivkovicmilos @gfanton
/gno.land/pkg/keyscli/ @jaekwon @moul @gfanton
/gno.land/pkg/log/ @zivkovicmilos @gfanton
/gno.land/pkg/sdk/vm/ @moul @gfanton @thehowl
/gno.land/pkg/integration/ @gfanton
/gno.land/genesis/ @moul
#...

# GnoVM/Gnolang.
/gnovm/ @gnolang/tech-staff
/gnovm/stdlibs @jaekwon @thehowl
/gnovm/tests @jaekwon @piux2 @thehowl @moul
/gnovm/cmd/gno @jaekwon @thehowl @harry-hov @moul
/gnovm/pkg/gnolang @jaekwon @piux2 @thehowl @moul
/gnovm/pkg/doc @thehowl
/gnovm/pkg/gnomod @harry-hov
/gnovm/pkg/integration @gfanton
#/gnovm/pkg/gnoenv
#/gnovm/pkg/repl
/gnovm/ @jaekwon @moul @piux2 @thehowl
/gnovm/stdlibs/ @thehowl
/gnovm/tests/ @jaekwon @deelawn @thehowl @mvertes
/gnovm/cmd/gno/ @moul @thehowl @harry-hov
/gnovm/pkg/gnolang/ @jaekwon @moul @piux2 @deelawn
/gnovm/pkg/doc/ @thehowl
/gnovm/pkg/repl/ @mvertes @ajnavarro
/gnovm/pkg/gnomod/ @harry-hov
/gnovm/pkg/gnoenv/ @gfanton
/gnovm/pkg/transpiler/ @thehowl
/gnovm/pkg/integration/ @gfanton

# Contribs
/contribs/ @gnolang/tech-staff
/contribs/gnodev @gfanton
/contribs/gnokeykc @moul
/contribs/gnomd @moul
#...
/contribs/gnodev/ @gfanton
/contribs/gnokeykc/ @moul
/contribs/gnomd/ @moul

# Misc
/misc/ @gnolang/tech-staff
/misc/loop @moul @gnolang/devops
/misc/deployments @moul @gnolang/devops
/misc/genstd @thehowl
#...
/misc/loop/ @moul @gnolang/devops
/misc/deployments/ @moul @gnolang/devops
/misc/genstd/ @thehowl

# Special files.
/PLAN.md @jaekwon @moul
Expand All @@ -65,3 +92,4 @@
/LICENSE.md @jaekwon
/.github/ @moul @gnolang/tech-staff
/.github/CODEOWNERS @jaekwon @moul
/go.mod @gnolang/tech-staff # no unnecessary dependencies
89 changes: 89 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ "master", "chain/*" ]
pull_request:
branches: [ "master", "chain/*" ]
schedule:
- cron: '22 17 * * 3'

jobs:
analyze:
name: Analyze (${{ matrix.language }})
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ubuntu-latest
timeout-minutes: 360
permissions:
# required for all workflows
security-events: write

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
include:
- language: go
build-mode: autobuild
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
43 changes: 41 additions & 2 deletions .github/workflows/contribs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,56 @@ jobs:
strategy:
fail-fast: false
matrix:
goversion: # two latest versions
goversion:
- "1.22.x"
program:
- "gnomd"
- "gnodev"
- "gnofaucet"
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.goversion }}
- run: make install ${{ matrix.program }}
- run: make install.${{ matrix.program }}
working-directory: contribs

test:
strategy:
fail-fast: false
matrix:
goversion: # two latest versions
- "1.21.x"
- "1.22.x"
program:
- "gnodev"
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.goversion }}
- run: make test.${{ matrix.program }}
working-directory: contribs

lint:
strategy:
fail-fast: false
matrix:
goversion:
- "1.22.x"
program:
- "gnodev"
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.goversion }}
- run: make lint.${{ matrix.program }}
working-directory: contribs

22 changes: 22 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: deploy docs on gnolang/docs.gno.land repository
on:
push:
branches:
- master
paths:
- "docs/**"

jobs:
trigger-netlify-docs-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
with:
github-token: ${{ secrets.DOCS_DEPLOY_PAT }}
script: |
await github.rest.actions.createworkflowDispatch({
owner: 'gnolang',
repo: 'docs.gno.land',
workflow_id: 'netlify.yml',
ref: 'main'
})
6 changes: 3 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v3
with:
Expand All @@ -49,7 +49,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
target: [gnoland-slim, gnokey-slim, gno-slim, gnofaucet-slim, gnoweb-slim]
target: [ gnoland-slim, gnokey-slim, gno-slim, gnofaucet-slim, gnoweb-slim ]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -71,7 +71,7 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v3
with:
Expand Down
Loading

0 comments on commit 1c6a4e2

Please sign in to comment.