Skip to content

Commit 829f5f4

Browse files
authored
Merge pull request #657 from 0xs34n/develop
Release v5
2 parents 36bd214 + 4b2fa60 commit 829f5f4

File tree

468 files changed

+303235
-34102
lines changed

Some content is hidden

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

468 files changed

+303235
-34102
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules/
22
dist/
3+
www/

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"import/prefer-default-export": 0,
2424
"@typescript-eslint/naming-convention": 0,
2525
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
26+
"@typescript-eslint/no-use-before-define": ["error", "nofunc"],
2627
"func-names": 0
2728
}
2829
}

.github/pull_request_template.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
- [ ] Performed a self-review of the code
2626
- [ ] Rebased to the last commit of the target branch (or merged it into my branch)
2727
- [ ] Linked the issues which this PR resolves
28-
- [ ] Documented the changes
29-
- [ ] Updated the docs (www)
28+
- [ ] Documented the changes in code (API docs will be generated automatically)
3029
- [ ] Updated the tests
3130
- [ ] All tests are passing

.github/workflows/_release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run Release
1+
name: _ Run Release
22
on:
33
workflow_call:
44
inputs:
@@ -14,12 +14,15 @@ on:
1414
# required: true
1515
NPM_TOKEN:
1616
required: true
17+
1718
jobs:
1819
release:
1920
name: Run release
2021
runs-on: ubuntu-latest
2122
steps:
2223
- uses: actions/checkout@v3
24+
with:
25+
ref: ${{ github.ref }}
2326
- uses: actions/setup-node@v3
2427
with:
2528
node-version: lts/*

.github/workflows/_test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
name: Run Tests
1+
name: _ Run Tests
22
on:
33
workflow_call:
4+
inputs:
5+
is-rpc:
6+
type: boolean
7+
default: false
48
secrets:
59
TEST_PROVIDER_BASE_URL:
610
required: false
@@ -19,7 +23,8 @@ jobs:
1923
# TODO - periodically check if conditional services are supported; https://github.com/actions/runner/issues/822
2024
services:
2125
devnet:
22-
image: shardlabs/starknet-devnet:0.4.4-seed0
26+
# image: ${{ inputs.is-rpc && 'shardlabs/starknet-devnet:0.5.3-seed0' || 'shardlabs/starknet-devnet:0.5.2-seed0' }}
27+
image: shardlabs/starknet-devnet:0.5.4-seed0
2328
ports:
2429
- 5050:5050
2530

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: '[Manual] Documentation Version PR'
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
version-override:
6+
description: 'Version override'
7+
type: string
8+
9+
jobs:
10+
build_docs:
11+
name: Documentation build
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: lts/*
18+
cache: 'npm'
19+
- name: Setup
20+
run: |
21+
npm ci --ignore-scripts
22+
cd www/
23+
npm ci --ignore-scripts
24+
- name: Build
25+
run: |
26+
args=()
27+
[[ "${{ inputs.version-override }}" != "" ]] && args+=( '--version-override=${{ inputs.version-override }}' )
28+
[[ "${{ inputs.version-override }}" != "" ]] && args+=( '--git-revision-override=v${{ inputs.version-override }}' )
29+
npm run docs:build:version "${args[@]}"
30+
npm run docs:version "${args[@]}"
31+
npm run format
32+
git add www/versioned_docs www/versioned_sidebars www/versions.json
33+
git checkout .
34+
- name: Create pull request
35+
uses: peter-evans/create-pull-request@v5
36+
with:
37+
branch: ci/docs-version
38+
committer: CI <[email protected]>
39+
author: CI <[email protected]>
40+
commit-message: 'docs: generate documentation version'
41+
title: 'CI documentation version'
42+
body: ''
43+
delete-branch: true
44+
reviewers: penovicp, ${{ github.triggering_actor }}

.github/workflows/manual-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Manual Release
1+
name: '[Manual] Release'
22
on:
33
workflow_dispatch:
44
inputs:

.github/workflows/manual-tests-devnet.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
name: Manual Devnet Test
1+
name: '[Manual] Test Devnet'
22
on: workflow_dispatch
33

44
jobs:
55
tests:
66
name: Run test on ${{ matrix.name }}
77
strategy:
8+
fail-fast: false
89
matrix:
910
name: [sequencer-devnet, rpc-devnet]
1011
include:
@@ -14,6 +15,8 @@ jobs:
1415
TEST_RPC_URL: http://127.0.0.1:5050/rpc
1516

1617
uses: ./.github/workflows/_test.yml
18+
with:
19+
is-rpc: ${{ matrix.TEST_RPC_URL != '' }}
1720
secrets:
1821
TEST_PROVIDER_BASE_URL: ${{ matrix.TEST_PROVIDER_BASE_URL }}
1922
TEST_RPC_URL: ${{ matrix.TEST_RPC_URL }}

.github/workflows/manual-tests-testnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Manual Testnet Test
1+
name: '[Manual] Test Testnet'
22
on: workflow_dispatch
33

44
jobs:

.github/workflows/pr-push-dev.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
1-
name: PR/Push Development
1+
name: '[PR|Push] Development'
22
on:
33
pull_request:
44
branches:
55
- beta
66
- develop
7+
paths:
8+
- '__mocks__/**'
9+
- '__tests__/**'
10+
- 'src/**'
11+
- 'package*'
12+
- 'ts*'
13+
- '!www/**'
714
push:
815
branches:
916
- beta
1017
- develop
18+
paths:
19+
- '__mocks__/**'
20+
- '__tests__/**'
21+
- 'src/**'
22+
- 'package*'
23+
- 'ts*'
24+
- '!www/**'
1125

1226
jobs:
1327
skip_check:
@@ -18,12 +32,15 @@ jobs:
1832
steps:
1933
- id: skip_duplicate
2034
uses: fkirc/skip-duplicate-actions@v5
35+
with:
36+
cancel_others: 'true'
2137

2238
tests:
2339
name: Run test on ${{ matrix.name }}
2440
needs: [skip_check]
2541
if: needs.skip_check.outputs.should_skip != 'true'
2642
strategy:
43+
fail-fast: false
2744
matrix:
2845
name: [sequencer-devnet, rpc-devnet]
2946
include:
@@ -33,6 +50,8 @@ jobs:
3350
TEST_RPC_URL: http://127.0.0.1:5050/rpc
3451

3552
uses: ./.github/workflows/_test.yml
53+
with:
54+
is-rpc: ${{ matrix.TEST_RPC_URL != '' }}
3655
secrets:
3756
TEST_PROVIDER_BASE_URL: ${{ matrix.TEST_PROVIDER_BASE_URL }}
3857
TEST_RPC_URL: ${{ matrix.TEST_RPC_URL }}

0 commit comments

Comments
 (0)