Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Q4 2023 release #228

Merged
merged 140 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from 139 commits
Commits
Show all changes
140 commits
Select commit Hold shift + click to select a range
e8f9dd6
chore: create branch feature/180-auto-generated-user-docs-staging
Oct 25, 2023
3c9ab1f
chore: create branch feature/180-auto-generated-user-docs/190-expose-…
Nov 3, 2023
bc11c0e
feat(solidity/linter): Add new argument in cli
EnzoBonato Nov 11, 2023
6e41914
feat(solidity/linter): add rule documentation type
ByFishh Nov 11, 2023
394ba78
feat(solidity/linter): remove option for empty vector
ByFishh Nov 11, 2023
4943d5a
feat:(solidity/linter): Add new function to display rules documentation
EnzoBonato Nov 11, 2023
a7dcf64
feat(solidity/linter): implement new method in RuleType
ByFishh Nov 11, 2023
b34dd7a
feat(solidity/linter): filling RuleDocumentation struct and format
ByFishh Nov 11, 2023
591794f
feat(solidity/linter): filling RuleDocumentation struct and format
EnzoBonato Nov 11, 2023
f1c8e62
feat(solidity/linter): add new fields for documentation
ByFishh Nov 14, 2023
81f24db
feat(solidity/linter): print json in cli, add source and test link
ByFishh Nov 14, 2023
dc33d7f
feat(solidity/linter): fill example_config in every rule documentation
EnzoBonato Nov 18, 2023
ba70c54
feat(solidity/linter): add severity to the documentation struct
ByFishh Nov 19, 2023
061982e
feat(solidity/linter): remove removeme
ByFishh Nov 19, 2023
a64108f
chore: create branch feature/180-auto-generated-user-docs/191-osmium-…
Oct 25, 2023
0cbdc3f
feat: display header in function of the depth
Leon-azerty Nov 3, 2023
9ab56be
feat: add code block
Leon-azerty Nov 4, 2023
7790b6a
feat: add retype
Leon-azerty Nov 4, 2023
4135982
feat: can give filepath via argument
Leon-azerty Nov 9, 2023
7f6cfa2
feat: update script with new structure tree
Leon-azerty Nov 13, 2023
77f1647
feat: create main function + readability
Leon-azerty Nov 13, 2023
933254b
refactor: replace if statements by array of functions
Leon-azerty Nov 14, 2023
d9aff22
fix: id undefined
Leon-azerty Nov 14, 2023
0565818
refactor
Leon-azerty Nov 17, 2023
40c485c
feat(solidity/linter): remove removeme
ByFishh Nov 19, 2023
0e8ac10
feat(solidity/linter): remove generated file
ByFishh Nov 19, 2023
b3859ef
feat(solidity/linter): edit retype config, display message when optio…
ByFishh Nov 19, 2023
9b3aa66
feat(solidity/linter): error message is now in english
ByFishh Nov 19, 2023
8e93b1f
feat(solidity/linter): fix rebase issue
ByFishh Nov 19, 2023
b3e6560
feat(solidity/linter): remove additional print when using -d in cli
ByFishh Nov 19, 2023
278ebe6
feat(solidity/linter):default homepage
ByFishh Nov 19, 2023
2c5fd10
feat(solidity/linter): remove bold on description
ByFishh Nov 19, 2023
aa98813
feat(solidity/linter): format examples and code
ByFishh Nov 19, 2023
fc6d88e
feat(solidity/linter): remove removeme
ByFishh Nov 19, 2023
cf83ac0
feat(docs): github action to deploy documentation
ByFishh Nov 23, 2023
e05209a
feat(docs): workflow_dispatch
ByFishh Nov 23, 2023
c5dac37
feat(docs): github action trigger event
ByFishh Nov 23, 2023
674a6b7
feat(docs): remove useless function parameters
ByFishh Nov 23, 2023
f9532fc
fix(docs): change trigger with good branch
ByFishh Nov 23, 2023
9e97a5b
fix(docs): action change doc folder path
ByFishh Nov 23, 2023
51af497
fix(docs): update checkout with good ref
ByFishh Nov 23, 2023
cb7a6eb
fix(docs): cd in good folder (starting from root each step)
ByFishh Nov 23, 2023
08f74f7
fix(docs): good path to retype config file
ByFishh Nov 23, 2023
3305982
fix(docs): add arg when calling createMarkdownFilesFromJsonArray.js
ByFishh Nov 23, 2023
1d98f48
feat(docs): change ref to main
ByFishh Nov 23, 2023
c66021b
merge: PR #197 from astrodevs-labs/feature/180-auto-generated-user-do…
ByFishh Nov 23, 2023
2796873
chore: create branch chore/216-make-cd-generic-staging
Nov 30, 2023
7ca79b0
refactor(cd): made cd more generic
0xmemorygrinder Nov 30, 2023
c6d2ab0
chore: deleted remove-me
0xmemorygrinder Nov 30, 2023
aeb4fbd
merge: #217 from chore/216-make-cd-generic-staging
0xmemorygrinder Nov 30, 2023
1abe1c7
chore: create branch bug/203-wrong-configuration-file-when-specifying…
Nov 7, 2023
e94e43c
fix(solidity/linter): load the config file from the path
0xtekgrinder Nov 14, 2023
d10b30a
feat: remove remove-me
0xtekgrinder Nov 14, 2023
3005343
wip: try to update the .solidhunter.json config
0xtekgrinder Nov 17, 2023
782a520
wip(solidity/core/linter-server): attempt to handle config file changes
0xmemorygrinder Nov 26, 2023
523cbed
fix: init now takes int oaccount path
0xtekgrinder Nov 26, 2023
fa7a3c1
fix(solidity/linter-cli): Loads the config file from the path + init …
0xtekgrinder Nov 26, 2023
4309b44
feat: add new request to get content and use it for config file change
0xtekgrinder Nov 26, 2023
1843943
feat(libs/lsp-server-wrapper): server now handle client responses
0xmemorygrinder Nov 27, 2023
ef62508
feat(solidity/core/linter-server): server now receives getContent req…
0xmemorygrinder Nov 27, 2023
48afdc0
fix(solidity/linter): after initialisation the LSP now longer create …
0xtekgrinder Nov 30, 2023
b6e2534
style(solidity/linter): format all files
0xtekgrinder Nov 30, 2023
1383410
refactor(solidity/linter): remove useless logs
0xtekgrinder Dec 1, 2023
f5d2cf6
hore(solidity/linter): remove unused dependency
0xtekgrinder Dec 1, 2023
4b89e85
fix(solidity/linter): use the config file whatever that path in the cli
0xtekgrinder Dec 1, 2023
fd8e38a
fix(solidity/linter/core): the linter cli now doesn't crash when crea…
0xtekgrinder Dec 1, 2023
5eed71e
chore(solidity./linter-cli): incremented patch version
0xmemorygrinder Dec 1, 2023
8e32d75
merge: PR #206 from bug/203-wrong-configuration-file-when-specifying-…
0xmemorygrinder Dec 1, 2023
814db05
chore: create branch feature/184-ignore-rule-comments-staging
Oct 25, 2023
7029352
feat(solidity/linter): ignoring rule from comments
EnergyCube Nov 8, 2023
aedb9bd
feat(solidity/linter): global rule enable/disable support
EnergyCube Nov 13, 2023
c80e25b
refactor(solidity/linter): reworked rule ignore comment parsing
EnergyCube Nov 26, 2023
f0615de
refactor(solidity/linter): added missing `}` in `parse_file`after rebase
EnergyCube Nov 26, 2023
8fae8a5
refactor(solidity/linter): corrected minor condition warning
EnergyCube Nov 26, 2023
af78bd7
chore(solidity/linter): removed unwanted file and added more tests
EnergyCube Nov 30, 2023
a4c0305
chore(solidity/core): bumped versions in linter-* crates after lib co…
0xmemorygrinder Dec 1, 2023
296afcc
merge: #200 from feature/184-ignore-rule-comments-staging
0xmemorygrinder Dec 1, 2023
83b3bfe
chore: create branch bug/218-windows-platform-support-staging
Dec 3, 2023
deeca3c
fix(solidity/core): now also windows executables
0xmemorygrinder Dec 3, 2023
3e0c5cf
fix(solidity/extension): refactored extension to launch platform spec…
0xmemorygrinder Dec 3, 2023
e0ea7d4
chore: deleted remove-me
0xmemorygrinder Dec 3, 2023
ebbe13c
chore: ran yarn install
0xmemorygrinder Dec 3, 2023
bcb3bb8
fix(cd): updated yarn argument
0xmemorygrinder Dec 6, 2023
8a2dc0f
chore: ran yarn install with new yarn version
0xmemorygrinder Dec 6, 2023
5cf5eb4
fix(cd): typo
0xmemorygrinder Dec 6, 2023
75964ec
fix(solidity/extension): missing import
0xmemorygrinder Dec 6, 2023
4c5bcb8
chore(solidity/extension): increased version
0xmemorygrinder Dec 6, 2023
d57292e
chore: deleted remove-me
0xmemorygrinder Dec 6, 2023
7eb1837
merge: PR #219 from bug/218-windows-platform-support-staging
0xmemorygrinder Dec 6, 2023
ecf6355
chore: create branch feature/176-compiler-warnings-errors-staging
Oct 27, 2023
258a578
feat: poc of compiler support
0xmemorygrinder Nov 15, 2023
e43be75
refactor(libs/foundry-wrapper): rework of foundry wrapper library to …
0xmemorygrinder Dec 6, 2023
29d45bc
refactor(solidity/core/foundry-compiler-server): use new version of f…
0xmemorygrinder Dec 6, 2023
63c8c7c
chore: deleted remove-me
0xmemorygrinder Dec 6, 2023
5c8c203
fix(libs/foundry-wrapper): added missing serde feature
0xmemorygrinder Dec 6, 2023
e0eb6a0
chore: ran lint and format
0xmemorygrinder Dec 6, 2023
d0d7c3c
fix(solidity/core/foundry-compiler-server): some windows specific issues
0xSwapFeeder Dec 8, 2023
18772ce
refactor(solidity/core/foundry-compiler-server): cleaned up the serve…
0xmemorygrinder Dec 10, 2023
aa1c508
chore: ran lint and format
0xmemorygrinder Dec 10, 2023
ff9321d
merge: PR #201 from feature/176-compiler-warnings-errors-staging
0xmemorygrinder Dec 15, 2023
df00e6d
chore: create branch feature/179-slither-implementation-staging
Oct 30, 2023
6325738
feat(soldity/slither): added slither core
0xSwapFeeder Nov 30, 2023
382cb60
fix(solidity/slither): fixed various diagnostics range mistakes and c…
0xSwapFeeder Dec 4, 2023
902a45b
feat(solidity/slither): fixed the way the server is launched
0xSwapFeeder Dec 6, 2023
346bebc
fix(solidity/slither): compiler error issue with path normalizing and…
0xSwapFeeder Dec 6, 2023
df49b30
fix(solidity/slither): linter and format errors
0xSwapFeeder Dec 7, 2023
f2172c2
feat(solidity/core/slither-server): added error popups when slither/s…
0xmemorygrinder Dec 8, 2023
373b307
fix(solidity/core/slither): runned cargo fmt
0xSwapFeeder Dec 11, 2023
010bfb2
chore(solidity/core): updated cargo.lock after reabase
0xmemorygrinder Dec 15, 2023
cc53356
fix(solidity/core/slither): ignored tests files anaysis
0xSwapFeeder Dec 18, 2023
18ea5cf
chore(solidity/core/slither): removed PR file
0xSwapFeeder Jan 4, 2024
6e375a1
merge: PR #202 from feature/179-slither-implementation-staging
0xmemorygrinder Jan 10, 2024
f9fcf4b
chore: create branch feature/61-solidity-formater-staging
Nov 26, 2023
9c0471a
feat(solidity/extension): fmt cli wrapper and vscode linter integration
EnergyCube Dec 18, 2023
44d0c1a
feat(solidity/extension): file with spaces are now formattable & cleanup
EnergyCube Jan 8, 2024
6ffcd1a
refactor(solidity/extension) : renamed variable to make it clearer
0xmemorygrinder Jan 9, 2024
b00d200
merge: PR #215 from feature/61-solidity-formater-staging
0xmemorygrinder Jan 10, 2024
ff32f7a
chore: create branch feature/207-integrate-foundry-tests-staging
Nov 26, 2023
42f91b2
feat(solidity/core/tests-positions-server): added language server to …
0xmemorygrinder Dec 6, 2023
384c186
feat(solidity/extension): launch tests-positions language server
0xmemorygrinder Dec 6, 2023
17ff06d
chore: deleted remove-me
0xmemorygrinder Dec 6, 2023
86f13f2
chore(solidity/core/tests-positions): ran lint and format
0xmemorygrinder Dec 6, 2023
24d6731
feat(solidity/extension): functions to run foundry tests
ByFishh Dec 6, 2023
971eaa1
refactor(solidity./core/tests-positions-server): refactored response …
0xmemorygrinder Dec 11, 2023
522bbd5
feat(solidity/extension): added TestManager class to interact with vs…
Leon-azerty Dec 13, 2023
896503a
fix(solidity/extension): compilation errors after rebase
0xmemorygrinder Dec 15, 2023
ae50d0f
fix(solidity/extension): tests were never failing and launching a con…
0xmemorygrinder Dec 18, 2023
a34aca0
fix(solidity/extension): this was not callable
0xmemorygrinder Dec 18, 2023
0e0076e
feat: show logs when test failed
Leon-azerty Dec 19, 2023
567487a
fix: bad cargo.lock merge
0xmemorygrinder Jan 4, 2024
dd2ae99
chore: ran cargo fmt
0xmemorygrinder Jan 5, 2024
8d70c30
refactor(solidity/extension/tests): removed useless comment
0xmemorygrinder Jan 9, 2024
27cb9ab
refactor(solidity/core/tests-positions-server): filter test functions…
0xmemorygrinder Jan 9, 2024
ff9213d
chore: fixed lint issue
0xmemorygrinder Jan 9, 2024
5de0680
merge: PR #214 from feature/207-integrate-foundry-tests-staging
0xmemorygrinder Jan 10, 2024
a8285c3
chore: create branch bug/225-inconsistent-test-results-staging
Jan 10, 2024
e1a673e
fix(solidity/extension/tests): display test logs using the correct API
0xmemorygrinder Jan 10, 2024
5941eb0
chore: deleted remove-me
0xmemorygrinder Jan 10, 2024
1225fcb
merge: PR #226 from bug/225-inconsistent-test-results-staging
0xmemorygrinder Jan 10, 2024
099ec93
chore(solidity/core/linter-lib): update documentation link
0xmemorygrinder Jan 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 13 additions & 45 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,17 @@ on:
required: true
type: string
description: "yarn workspace name"
command:
secrets:
CARGO_REGISTRY_TOKEN:
required: true
VSCE_PAT:
required: true
type: string
description: "yarn command to run"
workflow_dispatch:
inputs:
workspace:
required: true
type: string
description: "yarn workspace name"
command:
required: true
type: string
description: "yarn command to run"

jobs:
build:
Expand Down Expand Up @@ -50,42 +47,13 @@ jobs:
- os: macos-11
target: aarch64-apple-darwin
code-target: darwin-arm64
runs-on: ${{ matrix.os }}
#container: ${{ matrix.container }}

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3

- name: Setup yarn
id: setup-yarn
run: |
corepack enable
corepack prepare yarn@stable --activate
yarn set version stable
yarn -v

- name: Setup rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
override: true

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install --frozen-lockfile
if: steps.yarn-cache.outputs.cache-hit != 'true'

- run: yarn workspace ${{ inputs.workspace }} run ${{ inputs.command }}
env:
CARGO_BUILD_TARGET: ${{ matrix.target }}
uses: ./.github/workflows/execute-yarn-workspace-command.yml
with:
workspace: ${{ inputs.workspace }}
command: build
os: ${{ matrix.os }}
target: ${{ matrix.target }}
secrets:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}

74 changes: 74 additions & 0 deletions .github/workflows/cd-auto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Auto CD

on:
workflow_call:


jobs:
find-last-commit:
runs-on: ubuntu-latest
outputs:
commit: ${{ steps.last-commit.outputs.commit }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get Last Commit
id: last-commit
run: echo "commit=$(git log --oneline HEAD~1 -1 --format=format:%H)" >> $GITHUB_OUTPUT

setup:
needs: find-last-commit
uses: ./.github/workflows/detect-workspace-changes.yml
with:
from: ${{ github.sha }}
since: ${{ needs.find-last-commit.outputs.commit }}

publish-libraries:
if : ${{ needs.setup.outputs.libraries != '[]' && github.ref_name == 'main' }}
needs: setup
strategy:
fail-fast: false
matrix:
workspace: ${{ fromJson(needs.setup.outputs.libraries)}}
uses: ./.github/workflows/publish-library.yml
with:
workspace: ${{ matrix.workspace.name }}
secrets:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}



publish-core:
if: ${{ needs.setup.outputs.extensions != '[]' && github.ref_name == 'main' }}
needs:
- setup
- publish-libraries
strategy:
fail-fast: false
matrix:
workspace: ${{ fromJson(needs.setup.outputs.extensions)}}
uses: ./.github/workflows/publish-core.yml
with:
workspace: ${{ matrix.workspace.name }}
secrets:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}

publish-extensions:
if : ${{ needs.setup.outputs.extensions != '[]' }}
needs:
- setup
- publish-libraries
strategy:
fail-fast: false
matrix:
workspace: ${{ fromJson(needs.setup.outputs.extensions)}}
uses: ./.github/workflows/publish-extension-auto.yml
with:
workspace: ${{ matrix.workspace.name }}
pre-release: ${{ github.ref_name != 'main' }}
secrets:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}
68 changes: 68 additions & 0 deletions .github/workflows/cd-manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Manual CD

on:
workflow_dispatch:
inputs:
from:
description: 'From commit'
required: true
type: string
since:
description: 'Since commit'
required: true
type: string

jobs:
setup:
uses: ./.github/workflows/detect-workspace-changes.yml
with:
from: ${{ github.sha }}
since: ${{ inputs.since }}

publish-libraries:
if : ${{ needs.setup.outputs.libraries != '[]' && github.ref_name == 'main' }}
needs: setup
strategy:
fail-fast: false
matrix:
workspace: ${{ fromJson(needs.setup.outputs.libraries)}}
uses: ./.github/workflows/publish-library.yml
with:
workspace: ${{ matrix.workspace.name }}
secrets:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}



publish-core:
if: ${{ needs.setup.outputs.extensions != '[]' && github.ref_name == 'main' }}
needs:
- setup
- publish-libraries
strategy:
fail-fast: false
matrix:
workspace: ${{ fromJson(needs.setup.outputs.extensions)}}
uses: ./.github/workflows/publish-core.yml
with:
workspace: ${{ matrix.workspace.name }}
secrets:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}

publish-extensions:
if : ${{ needs.setup.outputs.extensions != '[]' }}
needs:
- setup
- publish-libraries
strategy:
fail-fast: false
matrix:
workspace: ${{ fromJson(needs.setup.outputs.extensions)}}
uses: ./.github/workflows/publish-extension-auto.yml
with:
workspace: ${{ matrix.workspace.name }}
secrets:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}
Loading
Loading