Skip to content

Commit

Permalink
Merge branch 'main' into perpsv3-subgraph-events
Browse files Browse the repository at this point in the history
  • Loading branch information
Tburm committed Aug 10, 2023
2 parents 977bc12 + fa1857c commit a9d4d4d
Show file tree
Hide file tree
Showing 37 changed files with 7,853 additions and 823 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ utils/*/utils
**/contracts/generated
**/test/generated
**/artifacts
**/subgraph/deployments
**/subgraph/build
**/subgraph/.bin
21 changes: 21 additions & 0 deletions .github/workflows/docgen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Docgen

on:
push:
branches:
- "docgen"

jobs:
docgen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.16.0"
cache: "yarn"
- run: yarn --version
- run: yarn install --immutable --immutable-cache
- run: yarn workspaces foreach --topological-dev --verbose run build:ts
- run: yarn docgen
- run: git diff --exit-code
10 changes: 0 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,6 @@ jobs:

- run: yarn workspaces foreach --topological-dev --recursive --verbose --from ${{ matrix.workspace }} run build-testable

- name: Regenerate docs and check for changes
run: |
if yarn workspace ${{ matrix.workspace }} run | grep docgen; then
yarn workspace ${{ matrix.workspace }} run docgen
# TODO: for some reason we have some diff in CI and not locally.
# git diff --exit-code
else
echo 'SKIP. No "docgen" script'
fi
- name: Execute size-contracts command
run: |
if yarn workspace ${{ matrix.workspace }} run | grep size-contracts; then
Expand Down
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ markets/*/test/generated
.yarnrc.yml
lerna.json
*.hbs
**/subgraph/deployments/
**/subgraph/deployments
**/subgraph/build
**/subgraph/.bin
**/artifacts/
**/cache/
**/docs/
Loading

0 comments on commit a9d4d4d

Please sign in to comment.